fcntl.h now requires sys/types.h
authorceriel <none@none>
Mon, 18 Mar 1991 09:16:00 +0000 (09:16 +0000)
committerceriel <none@none>
Mon, 18 Mar 1991 09:16:00 +0000 (09:16 +0000)
lang/occam/lib/channel.c

index a9bec78..fc92b19 100644 (file)
@@ -117,6 +117,8 @@ static int timeout();
 int chan_any(c) register chan *c;
 {
 #ifdef __BSD4_2
+/* Sigh ... since SunOs 4.1, fcntl.h requires sys/types.h. */
+#include <sys/types.h>
 #include <fcntl.h>
 #ifndef O_NDELAY
 #define O_NDELAY FNDELAY