gnome-core/help-browser/mime.c patch for FreeBSD




On FreeBSD machines, /usr/include/wait.h does not exist.  On Linux boxes
[well, on the one Linux box I checked] /usr/include/wait.h just seems to
include /usr/include/sys/wait.h.  Therefore, this patch...

--- mime.c      1998/03/10 22:41:54     1.14
+++ mime.c      1998/05/15 17:26:23
@@ -1,12 +1,20 @@
 /* handles MIME type recognition and conversion to HTML */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/types.h>
 #include <signal.h>
 #include <ctype.h>
 #include <fcntl.h>
+#ifdef HAVE_WAIT_H
 #include <wait.h>
+#else
+#include <sys/wait.h>
+#endif // HAVE_WAIT_H
 #include <errno.h>
 #include <string.h>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]