2017-02-11 8:35 GMT+01:00 Ngie Cooper <[email protected]>:
>   Note that sys/types.h is required on FreeBSD for kqueue(2), unlike NetBSD

Which is a bug on its own in my opinion. What do you think of this patch?

Index: sys/sys/event.h
===================================================================
--- sys/sys/event.h (revision 313335)
+++ sys/sys/event.h (working copy)
@@ -29,7 +29,8 @@
 #ifndef _SYS_EVENT_H_
 #define _SYS_EVENT_H_

-#include <sys/queue.h>
+#include <sys/_types.h>
+#include <sys/queue.h>

 #define EVFILT_READ (-1)
 #define EVFILT_WRITE (-2)
@@ -57,11 +58,11 @@
 } while(0)

 struct kevent {
- uintptr_t ident; /* identifier for this event */
+ __uintptr_t ident; /* identifier for this event */
  short filter; /* filter for event */
- u_short flags;
- u_int fflags;
- intptr_t data;
+ unsigned short flags;
+ unsigned int fflags;
+ __intptr_t data;
  void *udata; /* opaque user data identifier */
 };


-- 
Ed Schouten <[email protected]>
Nuxi, 's-Hertogenbosch, the Netherlands
KvK-nr.: 62051717
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "[email protected]"

Reply via email to