Hi,

Kirill S. Bychkov schrieb:
> I beg you pardon. Last time i changed one patch and haven't tested it...
> Should look this way:
> cat patches/patch-src_gapcmon_gapcmon_c
> 
> $OpenBSD$
> --- src/gapcmon/gapcmon.c.orig  Sat Jan 19 21:43:52 2008
> +++ src/gapcmon/gapcmon.c       Sat Feb  2 10:26:27 2008
> @@ -75,6 +75,7 @@
>  #include <sys/types.h>          /* socket() */
>  #include <sys/socket.h>         /* socket() */
>  #include <arpa/inet.h>          /* ntohs() */
> +#include <netinet/in.h>         /* sockaddr_in */
>  #include <netdb.h>              /* gethostbyname() */
>  #include <errno.h>
>  #include <string.h>             /* memset() */
> @@ -4080,7 +4081,7 @@ static gboolean gapc_util_load_icons(PGAPC_CONFIG pcfg
>     gchar pch_file[GAPC_MAX_ARRAY];
>     gchar *pch_2 = "./";
>     gchar *pch_3 = "../pixmaps/";
> -   gchar *pch_4 = "/usr/share/pixmaps/";
> +   gchar *pch_4 = "${PREFIX}/share/misc/apcupsd/pixmaps";
>     gchar *pch_image_names[] = {
>        "online.png",
>        "onbatt.png",


Thanks, this works.

Michael

Reply via email to