diff options
Diffstat (limited to 'sysdeps/unix/bsd/bits')
-rw-r--r-- | sysdeps/unix/bsd/bits/dirent.h | 4 | ||||
-rw-r--r-- | sysdeps/unix/bsd/bits/stat.h | 12 | ||||
-rw-r--r-- | sysdeps/unix/bsd/bits/waitflags.h | 4 |
3 files changed, 9 insertions, 11 deletions
diff --git a/sysdeps/unix/bsd/bits/dirent.h b/sysdeps/unix/bsd/bits/dirent.h index 6f88661694..642c79183e 100644 --- a/sysdeps/unix/bsd/bits/dirent.h +++ b/sysdeps/unix/bsd/bits/dirent.h @@ -17,6 +17,10 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#ifndef _DIRENT_H +# error "Never use <bits/dirent.h> directly; include <dirent.h> instead." +#endif + struct dirent { unsigned int d_fileno; /* 32 bits. */ diff --git a/sysdeps/unix/bsd/bits/stat.h b/sysdeps/unix/bsd/bits/stat.h index 71130f3fcb..8722fa0249 100644 --- a/sysdeps/unix/bsd/bits/stat.h +++ b/sysdeps/unix/bsd/bits/stat.h @@ -16,12 +16,9 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* - * Never include this file directly; use <sys/stat.h> instead. - */ - -#ifndef _STATBUF_H -#define _STATBUF_H 1 +#ifndef _SYS_STAT_H +# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead." +#endif #include <bits/types.h> @@ -82,6 +79,3 @@ struct stat #define __S_IREAD 0400 /* Read by owner. */ #define __S_IWRITE 0200 /* Write by owner. */ #define __S_IEXEC 0100 /* Execute by owner. */ - - -#endif /* bits/stat.h */ diff --git a/sysdeps/unix/bsd/bits/waitflags.h b/sysdeps/unix/bsd/bits/waitflags.h index ca952f90b4..47fc6ea1b7 100644 --- a/sysdeps/unix/bsd/bits/waitflags.h +++ b/sysdeps/unix/bsd/bits/waitflags.h @@ -18,7 +18,7 @@ Boston, MA 02111-1307, USA. */ #ifndef _SYS_WAIT_H -#error "Never use <bits/waitflags.h> directly; include <sys/wait.h> instead." +# error "Never include <bits/waitflags.h> directly; use <sys/wait.h> instead." #endif @@ -26,5 +26,5 @@ #define WNOHANG 1 /* Don't block waiting. */ #define WUNTRACED 2 /* Report status of stopped children. */ #ifdef __USE_GNU -#define WNOREAP 4 /* Don't remove record of child reported. */ +# define WNOREAP 4 /* Don't remove record of child reported. */ #endif |