summaryrefslogtreecommitdiffstats
path: root/include
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 /include
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 'include')
-rw-r--r--include/regexp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/regexp.h b/include/regexp.h
index 3a8d325..39cdf3a 100644
--- a/include/regexp.h
+++ b/include/regexp.h
@@ -37,6 +37,10 @@
#ifndef _REGEXP_H_
#define _REGEXP_H_
+#ifdef __GNUC__
+#warning "this file includes <regexp.h> which is deprecated, use <regex.h> instead"
+#endif
+
/*
* Definitions etc. for regexp(3) routines.
*
OpenPOWER on IntegriCloud