summaryrefslogtreecommitdiffstats
path: root/sys/sys/timeb.h
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2010-03-09 21:01:12 +0000
committered <ed@FreeBSD.org>2010-03-09 21:01:12 +0000
commitc5fa503cec8f3106fda29df1e39eab08c5416bc9 (patch)
tree03454dfe6e9ec5f335216e8c94654eaf5981da2a /sys/sys/timeb.h
parent4d3d204932053d26cf21ca49d47afc35db8ee63d (diff)
downloadFreeBSD-src-c5fa503cec8f3106fda29df1e39eab08c5416bc9.zip
FreeBSD-src-c5fa503cec8f3106fda29df1e39eab08c5416bc9.tar.gz
Add warnings to <regexp.h> and <sys/timeb.h>.
These header files only provide functionality that can be used in combination with libcompat. In order to prevent people from including them without any actual use (which happens a lot with <sys/timeb.h>), put a warning here to make people more aware. This means we have to lower WARNS for libcompat, which is no big deal.
Diffstat (limited to 'sys/sys/timeb.h')
-rw-r--r--sys/sys/timeb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sys/timeb.h b/sys/sys/timeb.h
index 59aa466..810c523 100644
--- a/sys/sys/timeb.h
+++ b/sys/sys/timeb.h
@@ -38,6 +38,10 @@
#ifndef _SYS_TIMEB_H_
#define _SYS_TIMEB_H_
+#ifdef __GNUC__
+#warning "this file includes <sys/timeb.h> which is deprecated"
+#endif
+
#include <sys/_types.h>
#ifndef _TIME_T_DECLARED
OpenPOWER on IntegriCloud