[openvas-libraries] fix warnings with the BSD_SOURCE

rebus rebus at fedoraproject.org
Sat May 24 14:48:45 UTC 2014


commit 8fc145f1dd5aab91b43030565f0a051c9070d148
Author: Michal Ambroz <rebus at seznam.cz>
Date:   Sat May 24 16:47:53 2014 +0200

    fix warnings with the BSD_SOURCE

 openvas-libraries-7.0-bsdsource.patch |   26 ++++++++++++++++++++++++++
 openvas-libraries.spec                |    4 ++--
 2 files changed, 28 insertions(+), 2 deletions(-)
---
diff --git a/openvas-libraries-7.0-bsdsource.patch b/openvas-libraries-7.0-bsdsource.patch
new file mode 100644
index 0000000..2ac5cae
--- /dev/null
+++ b/openvas-libraries-7.0-bsdsource.patch
@@ -0,0 +1,26 @@
+diff -up openvas-libraries-6.0+beta5/nasl/nasl_builtin_synscan.c.bsdsource openvas-libraries-6.0+beta5/nasl/nasl_builtin_synscan.c
+--- openvas-libraries-6.0+beta5/nasl/nasl_builtin_synscan.c.bsdsource	2013-02-22 12:37:34.000000000 +0100
++++ openvas-libraries-6.0+beta5/nasl/nasl_builtin_synscan.c	2014-04-25 10:41:33.068240190 +0200
+@@ -24,7 +24,7 @@
+ *
+ */
+ 
+-#define _BSD_SOURCE 1
++#define _DEFAULT_SOURCE 1
+ 
+ #include <unistd.h>      /* for close() */
+ #include <stdlib.h>      /* for rand() */
+diff -up openvas-libraries-6.0+beta5/nasl/nasl_raw.h.bsdsource openvas-libraries-6.0+beta5/nasl/nasl_raw.h
+--- openvas-libraries-6.0+beta5/nasl/nasl_raw.h.bsdsource	2013-02-22 12:37:34.000000000 +0100
++++ openvas-libraries-6.0+beta5/nasl/nasl_raw.h	2014-04-25 10:42:05.300985371 +0200
+@@ -24,8 +24,8 @@
+ #define __BSD_SOURCE
+ #endif
+ 
+-#ifndef _BSD_SOURCE
+-#define _BSD_SOURCE
++#ifndef _DEFAULT_SOURCE
++#define _DEFAULT_SOURCE
+ #endif
+ 
+ #ifndef __FAVOR_BSD
diff --git a/openvas-libraries.spec b/openvas-libraries.spec
index de80b9c..6527a9b 100644
--- a/openvas-libraries.spec
+++ b/openvas-libraries.spec
@@ -31,14 +31,14 @@ Source1:	https://svn.wald.intevation.org/svn/openvas/trunk/tools/openvas-check-s
 #Patch7:		openvas-libraries-glib.patch
 
 #Build error use _DEFAULT_SOURCE instead of _BSD_SOURCE
-#Patch8:		openvas-libraries-6.0-bsdsource.patch
+Patch8:		openvas-libraries-7.0-bsdsource.patch
 
 #LZO removed from GnuTLS > 3.0.0
 #fix signedness of one char attribute - already in upstream CVS
 Patch9:		openvas-libraries-7.0-gnutls3.patch
 
 #Fix fo newer version of libssh
-Patch10:		openvas-libraries-7.0-libssh.patch
+Patch10:	openvas-libraries-7.0-libssh.patch
 
 
 


More information about the scm-commits mailing list