Remove compiler warning
authorAnthony Green <green@moxielogic.com>
Thu, 12 Jun 2014 10:30:59 +0000 (06:30 -0400)
committerAnthony Green <green@moxielogic.com>
Thu, 12 Jun 2014 10:30:59 +0000 (06:30 -0400)
src/closures.c

index 78818d9..721ff00 100644 (file)
@@ -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;