e2fsprogs/e2fsprogs-1.42-implicit_fortify_decl.patch

18 lines
387 B
Diff
Raw Normal View History

--- lib/ext2fs/mmp.c.orig 2012-01-12 21:10:16.087185199 -0500
+++ lib/ext2fs/mmp.c 2012-01-12 21:59:56.987918809 -0500
@@ -25,6 +25,14 @@
#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>
+#include <unistd.h>
+
static int mmp_pagesize(void)
{
#ifdef _SC_PAGESIZE