Commit 1cee07be4712411baa5eb8af22698bc8443a6d6e

Anthony Green 2014-06-12T06:30:59

Remove compiler warning

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/src/closures.c b/src/closures.c
index 78818d9..721ff00 100644
--- a/src/closures.c
+++ b/src/closures.c
@@ -286,8 +286,11 @@ static int
 open_temp_exec_file_dir (const char *dir)
 {
   static const char suffix[] = "/ffiXXXXXX";
-  int lendir, flags, fd;
+  int lendir, flags;
   char *tempname;
+#ifdef O_TMPFILE
+  int fd;
+#endif
 
 #ifdef O_CLOEXEC
   flags = O_CLOEXEC;