fix up header on OpenBSD with C++
This commit is contained in:
parent
75b42e881a
commit
f13e1e1f65
@ -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/
|
||||
|
17
devel/libdvdread/patches/patch-dvdread_ifo_types_h
Normal file
17
devel/libdvdread/patches/patch-dvdread_ifo_types_h
Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user