mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-04 06:15:24 +00:00
x11-wm/enlightenment: fix build with GCC architectures
This port needs include sys/types.h in src/modules/sysinfo/cpuclock/cpuclock_sysctl.c: /usr/include/sys/sysctl.h:1062: error: expected declaration specifiers or '...' before 'u_int' It also needs USES=compiler:c11 because of pragma GCC diagnostic. PR: 239407 Approved by: enlightenment (maintainer timeout), linimon (mentor) Differential Revision: https://reviews.freebsd.org/D21399
This commit is contained in:
parent
7615d55b29
commit
7cc54a3bb5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=510091
@ -20,7 +20,7 @@ LIB_DEPENDS= libefl.so:devel/efl \
|
||||
BROKEN_sparc64= Does not install on sparc64: signal 10
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USES= alias autoreconf desktop-file-utils gettext-tools \
|
||||
USES= alias autoreconf compiler:c11 desktop-file-utils gettext-tools \
|
||||
gmake iconv libtool pathfix pkgconfig tar:xz
|
||||
USE_XORG= xcb
|
||||
USE_LDCONFIG= yes
|
||||
|
@ -0,0 +1,10 @@
|
||||
--- src/modules/sysinfo/cpuclock/cpuclock_sysctl.c.orig 2019-07-23 16:46:44 UTC
|
||||
+++ src/modules/sysinfo/cpuclock/cpuclock_sysctl.c
|
||||
@@ -2,6 +2,7 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#if defined(__FreeBSD__) || defined(__DragonFly__)
|
||||
+# include <sys/types.h>
|
||||
# include <sys/sysctl.h>
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user