graphics/glew-wayland: unbreak on GCC architectures

In file included from src/glew.c:43:
include/GL/eglew.h:115: error: redefinition of typedef 'EGLint'
/usr/local/include/EGL/eglplatform.h:158: error: previous declaration of 'EGLint' was here

$ gcc42 -xc -c -
typedef int foo;
typedef int foo;
^D
<stdin>:2: error: redefinition of typedef 'foo'
<stdin>:1: error: previous declaration of 'foo' was here

PR:		242310
Reported by:	pkubaj
This commit is contained in:
Jan Beich 2019-11-30 09:06:22 +00:00
parent 947efc7a7d
commit b9c668dadc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=518713

View File

@ -22,5 +22,7 @@ slave-post-patch:
@${REINPLACE_CMD} 's/Makefile.$$(SYSTEM)/&-egl/' ${WRKSRC}/Makefile
@${SED} 's/linux/${OPSYS:tl}/' ${WRKSRC}/config/Makefile.linux-egl \
>${WRKSRC}/config/Makefile.${OPSYS:tl}-egl
# GCC 4.2 doesn't support redefining same typedef
@${REINPLACE_CMD} '/typedef.*EGLint;/d' ${WRKSRC}/include/GL/eglew.h
.include "${MASTERDIR}/Makefile"