[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1025973: C99 compatibility fixes for pmount



Package: pmount
Version: 0.9.23-6
Tags: patch

Future compilers (such as Clang 16 and GCC 14) are likely to disable
support for implicit function declarations by default.  This patch
ensures that pmount doesn't stop building for this reason.

diff --git a/src/luks.c b/src/luks.c
index e764c33c1675df23..dc3632534879bda6 100644
--- a/src/luks.c
+++ b/src/luks.c
@@ -14,7 +14,10 @@
 #include "policy.h"
 #include <stdio.h>
 #include <limits.h>
+#include <fcntl.h>
+#include <sys/mount.h>
 #include <sys/stat.h>
+#include <unistd.h>
 #include <libintl.h>
 
 
Thanks,
Florian


Reply to: