Include sys/fd_set.h in the BSD_VISIBLE case.
authorSimon Schubert <corecode@dragonflybsd.org>
Wed, 28 May 2008 10:37:25 +0000 (10:37 +0000)
committerSimon Schubert <corecode@dragonflybsd.org>
Wed, 28 May 2008 10:37:25 +0000 (10:37 +0000)
Seems that a lot of software assumes that fd_set will be defined after
including sys/types.h, so restore this property.

Noted-by: hasso@
sys/sys/types.h

index 3eec97d..6240d7b 100644 (file)
@@ -37,7 +37,7 @@
  *
  *     @(#)types.h     8.6 (Berkeley) 2/19/95
  * $FreeBSD: src/sys/sys/types.h,v 1.40.2.2 2001/04/21 14:53:06 ume Exp $
- * $DragonFly: src/sys/sys/types.h,v 1.20 2008/05/19 10:19:49 corecode Exp $
+ * $DragonFly: src/sys/sys/types.h,v 1.21 2008/05/28 10:37:25 corecode Exp $
  */
 
 #ifndef _SYS_TYPES_H_
@@ -196,6 +196,8 @@ typedef __timer_t   timer_t;
 
 #ifdef __BSD_VISIBLE
 
+#include <sys/fd_set.h>
+
 #define NBBY 8         /* number of bits in a byte */
 /*
  * These declarations belong elsewhere, but are repeated here and in