summaryrefslogtreecommitdiff
path: root/sysdeps/unix/bsd/bits/stat.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/bsd/bits/stat.h')
-rw-r--r--sysdeps/unix/bsd/bits/stat.h12
1 files changed, 3 insertions, 9 deletions
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 */