summaryrefslogtreecommitdiff
path: root/gs/base/unix-aux.mak
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2011-08-19 14:00:43 +0100
committerChris Liddell <chris.liddell@artifex.com>2011-08-19 14:00:43 +0100
commitfa67a1d0f4b31841d02f2b6322b53da8a3874cfd (patch)
treeea8248849d90aa812a6cf14780f4911a7e1224db /gs/base/unix-aux.mak
parent0ab8cd1259dc76f6b3465f1ccd08a7509428e021 (diff)
Bug 692426 (tweak): eliminate warning
If unix-aux.mak finds sys/time.h exists, make definition it adds to gconfig_.h conditional on it not being defined already (it can now be defined in the compiler flags as setup by configure). No cluster differences.
Diffstat (limited to 'gs/base/unix-aux.mak')
-rw-r--r--gs/base/unix-aux.mak4
1 files changed, 3 insertions, 1 deletions
diff --git a/gs/base/unix-aux.mak b/gs/base/unix-aux.mak
index 418ac50a9..18745bc89 100644
--- a/gs/base/unix-aux.mak
+++ b/gs/base/unix-aux.mak
@@ -118,6 +118,8 @@ $(gconfig__h): $(UNIX_AUX_MAK) $(ECHOGS_XE)
if ( test -f $(INCLUDE)/ndir.h ); then $(ECHOGS_XE) -a $(gconfig__h) -x 23 define HAVE_NDIR_H; else true; fi
if ( test -f $(INCLUDE)/sys/dir.h ); then $(ECHOGS_XE) -a $(gconfig__h) -x 23 define HAVE_SYS_DIR_H; else true; fi
if ( test -f $(INCLUDE)/sys/ndir.h ); then $(ECHOGS_XE) -a $(gconfig__h) -x 23 define HAVE_SYS_NDIR_H; else true; fi
- if ( test -f $(INCLUDE)/sys/time.h ); then $(ECHOGS_XE) -a $(gconfig__h) -x 23 define HAVE_SYS_TIME_H; else true; fi
+ if ( test -f $(INCLUDE)/sys/time.h ); then $(ECHOGS_XE) -a $(gconfig__h) -x 23 ifndef HAVE_SYS_TIME_H ; \
+ $(ECHOGS_XE) -a $(gconfig__h) -x 23 define HAVE_SYS_TIME_H ; \
+ $(ECHOGS_XE) -a $(gconfig__h) -x 23 endif; else true; fi
if ( test -f $(INCLUDE)/sys/times.h ); then $(ECHOGS_XE) -a $(gconfig__h) -x 23 define HAVE_SYS_TIMES_H; else true; fi
if ( test -f $(JSRCDIR)/jmemsys.h); then true; else $(ECHOGS_XE) -a $(gconfig__h) -x 23 define DONT_HAVE_JMEMSYS_H; fi