SF.net SVN: gar:[23480] csw/mgar/pkg/screen/trunk/Makefile

chninkel at users.sourceforge.net chninkel at users.sourceforge.net
Tue Apr 22 23:59:36 CEST 2014


Revision: 23480
          http://sourceforge.net/p/gar/code/23480
Author:   chninkel
Date:     2014-04-22 21:59:36 +0000 (Tue, 22 Apr 2014)
Log Message:
-----------
screen/trunk: fix compilation error 'undefined struct/union member: msg_controllen'

Modified Paths:
--------------
    csw/mgar/pkg/screen/trunk/Makefile

Modified: csw/mgar/pkg/screen/trunk/Makefile
===================================================================
--- csw/mgar/pkg/screen/trunk/Makefile	2014-04-22 21:58:51 UTC (rev 23479)
+++ csw/mgar/pkg/screen/trunk/Makefile	2014-04-22 21:59:36 UTC (rev 23480)
@@ -63,6 +63,16 @@
 CONFIGURE_ARGS += --with-sys-screenrc=/etc$(prefix)/screenrc
 CONFIGURE_ARGS += --with-socket-dir=/var$(prefix)/run/screen
 
+# We define this additional macros to avoid the following error:
+#  undefined struct/union member: msg_controllen
+#  undefined struct/union member: msg_control
+# 
+# msg_control(len)? are defined in the historical BSD interfaces 
+# that are only available when the following macro are defined.
+# 
+# see: http://stackoverflow.com/questions/1034587/how-does-xpg4-2-and-other-defines-work-on-solaris
+EXTRA_CFLAGS += -D_XOPEN_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1
+
 include gar/category.mk
 
 # Only configure.in is provided so we must run autogen.sh

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list