blob: 4cf33222e620dbbfef31116dcc601363a39674b7 (
plain)
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
|
#!/bin/sh /usr/share/dpatch/dpatch-run
## 04-kfreebsd.dpatch by Marvin Stark <marv@der-marv.de>
## Thanks to Petr Salinger who has written this patch.
##
## DP: mini-httpd does not build on GNU/kFreeBSD
@DPATCH@
--- mini-httpd-1.19/port.h~ 2008-09-09 15:37:08.000000000 +0000
+++ mini-httpd-1.19/port.h 2008-09-09 15:37:08.000000000 +0000
@@ -21,6 +21,9 @@
#elif defined(__svr4__)
# define OS_SysV
# define ARCH "SysV"
+#elif defined(__GLIBC__)
+# define OS_GLIBC
+# define ARCH "GLIBC"
#else
# define OS_UNKNOWN
# define ARCH "UNKNOWN"
@@ -80,6 +83,15 @@
# define HAVE_INT64T
#endif /* OS_Linux */
+#ifdef OS_GLIBC
+# define HAVE_DAEMON
+# define HAVE_SETSID
+# define HAVE_WAITPID
+# define HAVE_TM_GMTOFF
+# define HAVE_SCANDIR
+# define HAVE_INT64T
+#endif /* OS_GLIBC */
+
#ifdef OS_Solaris
# define HAVE_SETSID
# define HAVE_WAITPID
|