hp-ux needs this to get through the System/Support libs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22078 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Makefile.rules b/Makefile.rules
index 93313d6..c5c1904 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -343,6 +343,10 @@
CompileCommonOpts := -Wall -W -Wwrite-strings -Wno-unused
+ifeq ($(OS),HP-UX)
+ CompileCommonOpts += -D_REENTRANT -D_HPUX_SOURCE
+endif
+
LD.Flags += -L$(LibDir) -L$(LLVMLibDir)
CPP.Flags += -I$(PROJ_OBJ_DIR) -I$(PROJ_SRC_DIR) \
-I$(PROJ_OBJ_ROOT)/include \