diff options
author | tnn <tnn> | 2007-07-17 10:56:07 +0000 |
---|---|---|
committer | tnn <tnn> | 2007-07-17 10:56:07 +0000 |
commit | 5c56981e4f041ca11bfe6e614ec74108a42b5b95 (patch) | |
tree | 66f7c7f613dab049a9a88079377b8124eca06da3 /devel/libevent | |
parent | c8a4f0d8094c95f5dd26edbcbf67db1f6eab409d (diff) | |
download | pkgsrc-5c56981e4f041ca11bfe6e614ec74108a42b5b95.tar.gz |
Use c99 uint* types rather than u_int* on HPUX.
Diffstat (limited to 'devel/libevent')
-rw-r--r-- | devel/libevent/Makefile | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/devel/libevent/Makefile b/devel/libevent/Makefile index 83c6df08bfd..a087747c6a5 100644 --- a/devel/libevent/Makefile +++ b/devel/libevent/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.22 2007/04/25 16:38:37 tnn Exp $ +# $NetBSD: Makefile,v 1.23 2007/07/17 10:56:07 tnn Exp $ # # WARNING: updating this package (as of the 1.1/1.2 releases) means # updating BUILDLINK_ABI_DEPENDS in buildlink3.mk and a PKGREVISION @@ -21,13 +21,14 @@ TEST_TARGET= verify LIBS.SunOS+= -lnsl -lresolv -# Solaris doesn't have u_intX_t types in <inttypes.h>. -CFLAGS.SunOS+= -Du_int8_t=uint8_t -CFLAGS.SunOS+= -Du_int16_t=uint16_t -CFLAGS.SunOS+= -Du_int32_t=uint32_t - .include "../../mk/bsd.prefs.mk" -.if ${OPSYS} == "SunOS" + +# Solaris and HPUX don't have u_intX_t types in <inttypes.h>. +.if ${OPSYS} == "SunOS" || ${OPSYS} == "HPUX" +CFLAGS+= -Du_int8_t=uint8_t +CFLAGS+= -Du_int16_t=uint16_t +CFLAGS+= -Du_int32_t=uint32_t + SUBST_CLASSES+= inttypes SUBST_STAGE.inttypes= post-patch SUBST_FILES.inttypes= event.h |