fix up header on OpenBSD with C++

This commit is contained in:
espie 2006-02-19 18:28:55 +00:00
parent 75b42e881a
commit f13e1e1f65
2 changed files with 19 additions and 2 deletions

View File

@ -1,9 +1,9 @@
#$OpenBSD: Makefile,v 1.12 2006/02/16 11:08:26 espie Exp $
#$OpenBSD: Makefile,v 1.13 2006/02/19 18:28:55 espie Exp $
CATEGORIES= devel
COMMENT= "accessing DVD files"
DISTNAME= libdvdread-0.9.5
PKGNAME= ${DISTNAME}
PKGNAME= ${DISTNAME}p0
SHARED_LIBS= dvdread 4.0
HOMEPAGE= http://www.dtek.chalmers.se/groups/dvd/
MASTER_SITES= ${HOMEPAGE}dist/

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-dvdread_ifo_types_h,v 1.1 2006/02/19 18:28:55 espie Exp $
--- dvdread/ifo_types.h.orig Sun Feb 19 18:57:54 2006
+++ dvdread/ifo_types.h Sun Feb 19 19:00:02 2006
@@ -28,8 +28,12 @@
#error "Must include <inttypes.h> or <stdint.h> before any libdvdread header."
#endif
#else
-#if !defined(UINT8_MAX) || !defined(UINT16_MAX) || !defined(INT32_MAX)
+#if defined(UINT8_MAX) && defined(UINT16_MAX) && defined(INT32_MAX)
+#else
+#if defined(__OpenBSD__) && defined(__cplusplus) && defined(__BIT_TYPES_DEFINED__)
+#else
#error "Must include <inttypes.h> or <stdint.h> before any libdvdread header."
+#endif
#endif
#endif