[Openvas-commits] r5437 - in trunk/openvas-libraries: . nasl

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Oct 8 09:48:40 CEST 2009


Author: mwiegand
Date: 2009-10-08 09:48:39 +0200 (Thu, 08 Oct 2009)
New Revision: 5437

Modified:
   trunk/openvas-libraries/ChangeLog
   trunk/openvas-libraries/nasl/CMakeLists.txt
Log:
* nasl/CMakeList.txt: Added defines for _FILE_OFFSET_BITS and
LARGEFILE_SOURCE since they are needed by GPGME for key access.


Modified: trunk/openvas-libraries/ChangeLog
===================================================================
--- trunk/openvas-libraries/ChangeLog	2009-10-08 06:22:29 UTC (rev 5436)
+++ trunk/openvas-libraries/ChangeLog	2009-10-08 07:48:39 UTC (rev 5437)
@@ -1,3 +1,8 @@
+2009-10-08  Michael Wiegand <michael.wiegand at intevation.de>
+
+	* nasl/CMakeList.txt: Added defines for _FILE_OFFSET_BITS and
+	LARGEFILE_SOURCE since they are needed by GPGME for key access.
+
 2009-10-07  Matthew Mundell <matthew.mundell at intevation.de>
 
 	* misc/openvas_server.c (openvas_server_open): Create address with

Modified: trunk/openvas-libraries/nasl/CMakeLists.txt
===================================================================
--- trunk/openvas-libraries/nasl/CMakeLists.txt	2009-10-08 06:22:29 UTC (rev 5436)
+++ trunk/openvas-libraries/nasl/CMakeLists.txt	2009-10-08 07:48:39 UTC (rev 5437)
@@ -129,7 +129,8 @@
 ## Library
 
 set (CMAKE_C_FLAGS_DEBUG        "${CMAKE_C_FLAGS_DEBUG} -Wall")
-set (CMAKE_C_FLAGS              "${CMAKE_C_FLAGS} -Wall")
+# The "-D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1" is necessary for GPGME!
+set (CMAKE_C_FLAGS              "${CMAKE_C_FLAGS} -Wall -D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1")
 
 
 ## Compile the parser - note that there are (better) CMake macros to achieve



More information about the Openvas-commits mailing list