blob: 7cd42ceafd6894bafa774433f89370614cb96ca7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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
|