Subversion Repositories

?revision_form?Rev ?revision_input??revision_submit??revision_endform?

Rev 79 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
50 magnus 1
--- a/lib/os.c
2
+++ b/lib/os.c
3
@@ -26,7 +26,7 @@
4
 #include "os_linux.c"
5
 #elif (defined(SOLARIS))
6
 #include "os_solaris.c"
7
-#elif (defined(BSD) && BSD >= 199306)
8
+#elif defined(__FreeBSD_kernel__) || (defined(BSD) && BSD >= 199306)
9
 #include "os_bsd.c"
10
 #else
11
 #error "No support for this operating system yet. Sorry!"
12
--- a/lib/os_bsd.c
13
+++ b/lib/os_bsd.c
82 magnus 14
@@ -16,8 +16,12 @@
50 magnus 15
 #include <arpa/inet.h>
16
 #include <signal.h>
17
 #include <netdb.h>
79 magnus 18
-
50 magnus 19
+#ifdef __GLIBC__
20
+#include <sys/file.h>
21
+#include <pty.h>
79 magnus 22
+#else
50 magnus 23
 #include <libutil.h>
79 magnus 24
+#endif
50 magnus 25
 
79 magnus 26
 /* ====================================================================== */
27
 
28
--- a/lib/mymutex.c
29
+++ b/lib/mymutex.c
30
@@ -9,7 +9,7 @@
31
 
32
 #include "lib.h"
33
 
34
-#ifdef MUTEX_SEMAPHORE
35
+#if defined(MUTEX_SEMAPHORE) && !defined(__stub_semtimedop)
36
 #  include "mymutex_sem.c"
37
 #else
38
 #  include "mymutex_file.c"