summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorLee Duncan <lduncan@suse.com>2017-12-02 13:33:07 -0800
committerLee Duncan <lduncan@suse.com>2017-12-02 13:33:07 -0800
commit96114c47ef32a49a3a3d59cd94f5f82c9f46e756 (patch)
treea2a2ce32a120da055f1eefafa70e64d7d00ee2cf /utils
parent8c694e4d17a82ecbf4fc7fc1841a4453d49765ad (diff)
downloadopen-iscsi-96114c47ef32a49a3a3d59cd94f5f82c9f46e756.tar.gz
Replace deprecated _SVID_SOURCE with _DEFAULT_SOURCE
Gcc version 7.2.1 and linux-glibc-devel version 4.14 complain about _SVID_SOURCE, which is deprecated, so use the replacement of _DEFAULT_SOURCE. The error message looks like: > In file included from /usr/include/ftw.h:25:0, > from fwparam_sysfs.c:23: > /usr/include/features.h:183:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] > # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" > ^~~~~~~
Diffstat (limited to 'utils')
-rw-r--r--utils/fwparam_ibft/fwparam_ibft_sysfs.c2
-rw-r--r--utils/fwparam_ibft/fwparam_sysfs.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/utils/fwparam_ibft/fwparam_ibft_sysfs.c b/utils/fwparam_ibft/fwparam_ibft_sysfs.c
index 019fc19..8900af4 100644
--- a/utils/fwparam_ibft/fwparam_ibft_sysfs.c
+++ b/utils/fwparam_ibft/fwparam_ibft_sysfs.c
@@ -19,7 +19,7 @@
*/
#define _XOPEN_SOURCE 500
-#define _SVID_SOURCE
+#define _DEFAULT_SOURCE
#include <ftw.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/utils/fwparam_ibft/fwparam_sysfs.c b/utils/fwparam_ibft/fwparam_sysfs.c
index 23eb913..a0a9364 100644
--- a/utils/fwparam_ibft/fwparam_sysfs.c
+++ b/utils/fwparam_ibft/fwparam_sysfs.c
@@ -19,7 +19,7 @@
*/
#define _XOPEN_SOURCE 500
-#define _SVID_SOURCE
+#define _DEFAULT_SOURCE
#include <ftw.h>
#include <stdio.h>
#include <stdlib.h>