File e2fsprogs-1.42-implicit_fortify_decl.patch of Package e2fsprogs.19068

Index: lib/ext2fs/mmp.c
===================================================================
--- lib/ext2fs/mmp.c.orig
+++ lib/ext2fs/mmp.c
@@ -27,6 +27,13 @@
 #include "ext2fs/ext2_fs.h"
 #include "ext2fs/ext2fs.h"
 
+#if _BSD_SOURCE || _XOPEN_SOURCE >= 500
+#include <netdb.h>
+#endif
+
+#include <string.h>
+#include <stdio.h>
+
 #ifndef O_DIRECT
 #define O_DIRECT 0
 #endif
openSUSE Build Service is sponsored by