Subversion Repositories

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

Rev 50 | Blame | Compare with Previous | Last modification | View Log | RSS feed

--- a/lib/os.c
+++ b/lib/os.c
@@ -26,7 +26,7 @@
 #include "os_linux.c"
 #elif (defined(SOLARIS))
 #include "os_solaris.c"
-#elif (defined(BSD) && BSD >= 199306)
+#elif defined(__FreeBSD_kernel__) || (defined(BSD) && BSD >= 199306)
 #include "os_bsd.c"
 #else
 #error "No support for this operating system yet. Sorry!"
--- a/lib/os_bsd.c
+++ b/lib/os_bsd.c
@@ -16,8 +16,13 @@
 #include <arpa/inet.h>
 #include <signal.h>
 #include <netdb.h>
-
+#ifdef __GLIBC__
+#include <sys/file.h>
+#include <pty.h>
+#endif
+#else
 #include <libutil.h>
+#endif
 
 /* ====================================================================== */
 
--- a/lib/mymutex.c
+++ b/lib/mymutex.c
@@ -9,7 +9,7 @@
 
 #include "lib.h"
 
-#ifdef MUTEX_SEMAPHORE
+#if defined(MUTEX_SEMAPHORE) && !defined(__stub_semtimedop)
 #  include "mymutex_sem.c"
 #else
 #  include "mymutex_file.c"