[PATCH] divelist.c: Fix an 'implicit declaration' warning
Lubomir I. Ivanov
neolit123 at gmail.com
Wed Mar 20 06:25:09 PDT 2013
From: "Lubomir I. Ivanov" <neolit123 at gmail.com>
close() should be included from unistd.h, instead of fcntl.h for
better portability.
Signed-off-by: Lubomir I. Ivanov <neolit123 at gmail.com>
---
divelist.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/divelist.c b/divelist.c
index feec27b..c25ee62 100644
--- a/divelist.c
+++ b/divelist.c
@@ -10,7 +10,7 @@
* void mark_divelist_changed(int changed)
* int unsaved_changes()
*/
-#include <fcntl.h>
+#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
--
1.7.11.msysgit.0
More information about the subsurface
mailing list