hp-ux needs this to get through the System/Support libs
[oota-llvm.git] / Makefile.rules
index 93313d6537277ff5a9adc7ba8aa85efbda2f1450..c5c19049b153aa1227b1be5ca95e2b948c3b93e3 100644 (file)
@@ -343,6 +343,10 @@ endif
 
 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 \