include sys/sysmacros.h from sys/types.h when _GNU_SOURCE is defined

This commit is contained in:
Rich Felker 2011-02-20 16:34:10 -05:00
parent b1b752372f
commit f552c792c7
1 changed files with 1 additions and 0 deletions

View File

@ -60,6 +60,7 @@ extern "C" {
#ifdef _GNU_SOURCE
typedef unsigned long caddr_t;
#include <sys/sysmacros.h>
#endif
#ifdef __cplusplus