diff options
Diffstat (limited to 'japanese/ebview/files/patch-src__ebview.c')
| -rw-r--r-- | japanese/ebview/files/patch-src__ebview.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/japanese/ebview/files/patch-src__ebview.c b/japanese/ebview/files/patch-src__ebview.c new file mode 100644 index 000000000000..7cd42ceafd68 --- /dev/null +++ b/japanese/ebview/files/patch-src__ebview.c @@ -0,0 +1,38 @@ +--- src/ebview.c.orig Sun Apr 13 18:43:30 2003 ++++ src/ebview.c Fri May 2 20:31:01 2003 +@@ -20,9 +20,16 @@ + #include <sys/wait.h> + #include <sys/socket.h> + #include <sys/un.h> +-#include <getopt.h> + #include <pthread.h> + ++#ifdef HAVE_CONFIG_H ++#include "../config.h" ++#endif ++ ++#ifdef HAVE_GETOPT_LONG ++#include <getopt.h> ++#endif ++ + #include "defs.h" + #include "global.h" + +@@ -200,7 +207,7 @@ + optind = 0; + + while(1){ +-#ifdef __FreeBSD__ ++#ifndef HAVE_GETOPT_LONG + c = getopt(g_argc, g_argv, "sprig:"); + #else + c = getopt_long(g_argc, g_argv, "sprig:", +@@ -364,7 +371,7 @@ + /* The total length of the address includes the sun_family + element */ + +-#ifdef __FreeBSD__ ++#ifndef HAVE_GETOPT_LONG + addrLength = sizeof(address.sun_len) + sizeof(address.sun_family) + strlen(address.sun_path) + 1; + address.sun_len = addrLength; + #else |
