summaryrefslogtreecommitdiffstats
path: root/include/struct.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/struct.h')
-rw-r--r--include/struct.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/struct.h b/include/struct.h
index f80ecd0..c32ec28 100644
--- a/include/struct.h
+++ b/include/struct.h
@@ -31,11 +31,17 @@
* SUCH DAMAGE.
*
* @(#)struct.h 8.1 (Berkeley) 6/2/93
+ *
+ * $FreeBSD$
*/
#ifndef _STRUCT_H_
#define _STRUCT_H_
+#if __GNUC__
+#warning "this file includes <struct.h> which is deprecated, use <stddef.h> instead"
+#endif
+
/* Offset of the field in the structure. */
#define fldoff(name, field) \
((int)&(((struct name *)0)->field))
OpenPOWER on IntegriCloud