aboutsummaryrefslogtreecommitdiff
path: root/gnu/libg++/g++-include/sys/time.h
diff options
context:
space:
mode:
authorsvn2git <svn2git@FreeBSD.org>1993-11-01 08:00:00 +0000
committersvn2git <svn2git@FreeBSD.org>1993-11-01 08:00:00 +0000
commit8503f4f13f77abf7adc8f7e329c6f9c1d52b6a20 (patch)
treec5b2ce776438e0a52b492a2ab6ab41360b8ba1f6 /gnu/libg++/g++-include/sys/time.h
This commit was manufactured to restore the state of the 1.0-RELEASE image. Releases prior to 5.3-RELEASE are omitting the secure/ and crypto/ subdirs.
Diffstat (limited to 'gnu/libg++/g++-include/sys/time.h')
-rw-r--r--gnu/libg++/g++-include/sys/time.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/gnu/libg++/g++-include/sys/time.h b/gnu/libg++/g++-include/sys/time.h
new file mode 100644
index 000000000000..81419b8c4814
--- /dev/null
+++ b/gnu/libg++/g++-include/sys/time.h
@@ -0,0 +1,41 @@
+#ifndef __libgxx_sys_time_h
+
+extern "C"
+{
+#ifdef __sys_time_h_recursive
+#include_next <sys/time.h>
+#else
+#define __sys_time_h_recursive
+
+// Some system (e.g Ultrix) define these in sys/time.h.
+
+#ifndef __time_h_recursive
+#define time __hide_time
+#define clock __hide_clock
+#define gmtime __hide_gmtime
+#define localtime __hide_localtime
+#define ctime __hide_ctime
+#define asctime __hide_asctime
+#define strftime __hide_strftime
+#endif
+
+#ifdef VMS
+#include "GNU_CC_INCLUDE:[sys]resourcetime.h"
+#else
+#include_next <sys/time.h>
+#endif
+#undef __sys_time_h_recursive
+
+#define __libgxx_sys_time_h 1
+
+#undef clock
+#undef ctime
+#undef gmtime
+#undef localtime
+#undef time
+#undef asctime
+#undef strftime
+#endif
+}
+
+#endif