Author: ed
Date: Mon Feb 13 19:00:09 2017
New Revision: 313704
URL: https://svnweb.freebsd.org/changeset/base/313704

Log:
  Make <sys/event.h> work on its own.
  
  Right now this header file doesn't want to build when included on its
  own, as it depends on some integer types that are only declared
  internally. Switch it over to use <sys/_types.h> and the __*
  counterparts.

Modified:
  head/sys/sys/event.h

Modified: head/sys/sys/event.h
==============================================================================
--- head/sys/sys/event.h        Mon Feb 13 18:52:26 2017        (r313703)
+++ head/sys/sys/event.h        Mon Feb 13 19:00:09 2017        (r313704)
@@ -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 */
 };
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to