mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
- Fix building on 4.x.
Reported by: pointyhat
This commit is contained in:
parent
d24c30270a
commit
6d2e101be7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=176507
@ -43,7 +43,14 @@ XDMCP_LIBS= -L${X11BASE}/lib -lXdmcp
|
||||
XPROTO_CFLAGS= -I${X11BASE}/include
|
||||
XPROTO_LIBS= -L${X11BASE}/lib
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 500000
|
||||
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src__xcb.h \
|
||||
${FILESDIR}/extra-patch-src__xcb_auth.c
|
||||
.endif
|
||||
|
||||
post-build:
|
||||
DISPLAY= ${GMAKE} -C ${WRKSRC} check
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
11
x11/libxcb/files/extra-patch-src__xcb.h
Normal file
11
x11/libxcb/files/extra-patch-src__xcb.h
Normal file
@ -0,0 +1,11 @@
|
||||
--- ./src/xcb.h.orig Sat Oct 7 22:31:54 2006
|
||||
+++ ./src/xcb.h Sun Nov 5 12:22:13 2006
|
||||
@@ -29,7 +29,7 @@
|
||||
#define __XCB_H__
|
||||
#include <sys/types.h>
|
||||
|
||||
-#if defined(__solaris__)
|
||||
+#if defined(__solaris__) || __FreeBSD__ < 5
|
||||
#include <inttypes.h>
|
||||
#else
|
||||
#include <stdint.h>
|
10
x11/libxcb/files/extra-patch-src__xcb_auth.c
Normal file
10
x11/libxcb/files/extra-patch-src__xcb_auth.c
Normal file
@ -0,0 +1,10 @@
|
||||
--- ./src/xcb_auth.c.orig Sat Oct 7 18:43:12 2006
|
||||
+++ ./src/xcb_auth.c Sun Nov 5 03:44:33 2006
|
||||
@@ -27,6 +27,7 @@
|
||||
|
||||
#include <assert.h>
|
||||
#include <X11/Xauth.h>
|
||||
+#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <sys/un.h>
|
Loading…
Reference in New Issue
Block a user