This repository has been archived on 2024-11-07. You can view files and clone it, but cannot push or open issues or pull requests.
openvas-libraries/openvas-libraries-7.0.10-glibc-2.22.patch

31 lines
837 B
Diff

--- openvas-libraries-7.0.10/nasl/nasl_raw.h.orig 2016-02-05 23:44:42.728219386 +0100
+++ openvas-libraries-7.0.10/nasl/nasl_raw.h 2016-02-05 23:44:57.873212490 +0100
@@ -20,12 +20,12 @@
#ifndef OPENVAS_RAW_H
#define OPENVAS_RAW_H
#ifdef __linux__
-#ifndef __BSD_SOURCE
-#define __BSD_SOURCE
+#ifndef __DEFAULT_SOURCE
+#define __DEFAULT_SOURCE
#endif
-#ifndef _BSD_SOURCE
-#define _BSD_SOURCE
+#ifndef _DEFAULT_SOURCE
+#define _DEFAULT_SOURCE
#endif
#ifndef __FAVOR_BSD
--- openvas-libraries-7.0.10/nasl/nasl_builtin_synscan.c.orig 2016-02-05 23:43:24.983255395 +0100
+++ openvas-libraries-7.0.10/nasl/nasl_builtin_synscan.c 2016-02-05 23:43:41.300247748 +0100
@@ -24,7 +24,7 @@
*
*/
-#define _BSD_SOURCE 1
+#define _DEFAULT_SOURCE 1
#include <unistd.h> /* for close() */
#include <stdlib.h> /* for rand() */