summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2016-05-06 13:00:50 +0200
committerJohnny Willemsen <jwillemsen@remedy.nl>2016-05-06 13:00:50 +0200
commit3eebc64c2c55a7a946d5d6c76b84dc3ae5197fa1 (patch)
tree4732507d1cc55c713e2aefa7e6f9e845e8ecfc53
parent11aa52c3d6e17d42853d67568100544e70187a2a (diff)
downloadATCD-3eebc64c2c55a7a946d5d6c76b84dc3ae5197fa1.tar.gz
In kfreebasd atop is a macro which we need to undefine
* ACE/ace/config-kfreebsd.h:
-rw-r--r--ACE/ace/config-kfreebsd.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/ACE/ace/config-kfreebsd.h b/ACE/ace/config-kfreebsd.h
index 8906ea452dc..164b06a069f 100644
--- a/ACE/ace/config-kfreebsd.h
+++ b/ACE/ace/config-kfreebsd.h
@@ -1,7 +1,12 @@
#ifndef ACE_CONFIG_KFREEBSD_H
-#define ACE_CONFIG_KFREEBSDH
-#include "ace/config-g++-common.h"
+#define ACE_CONFIG_KFREEBSD_H
+
+// Make sure system defined macro (not related to ACE_OS::atop)
+// is not defined during ACE compilation
+#include <machine/param.h>
+#undef atop
+#include "ace/config-g++-common.h"
/* Uses ctime_r & asctime_r with only two parameters vs. three. */
#define ACE_HAS_2_PARAM_ASCTIME_R_AND_CTIME_R 1
@@ -607,7 +612,6 @@
/* Enable ACE inlining */
#define __ACE_INLINE__ 1
-
-#endif /* ACE_CONFIG_KFREEBSDH */
+#endif /* ACE_CONFIG_KFREEBSD_H */