evil: returned the good value for mkstemp
authorCedric Bail <cedric.bail@samsung.com>
Tue, 25 Jun 2013 03:16:36 +0000 (12:16 +0900)
committerCedric Bail <cedric.bail@samsung.com>
Tue, 25 Jun 2013 03:16:36 +0000 (12:16 +0900)
Added back some needed defines for elementary (was in evil 1.7.7).

src/lib/evil/Evil.h
src/lib/evil/evil_stdlib.c

index 0aad5f0..eb84ec6 100644 (file)
@@ -193,6 +193,9 @@ typedef unsigned long  gid_t;
 # define _S_IWUSR _S_IWRITE
 # define _S_IRUSR _S_IREAD
 
+#define S_IRWXO _S_IRWXU
+#define S_IRWXG _S_IRWXU
+
 #  define mkdir(p,m) _mkdir(p)
   /*
 #  define close(fd) _close(fd)
index b7c814e..3e06393 100644 (file)
@@ -310,7 +310,7 @@ _mkstemp(char *suffix, int val)
 
    val += 7777;
 
-   return v;
+   return val;
 }
 
 EAPI char *
@@ -369,7 +369,7 @@ mkstemp(char *__template)
      {
         int fd;
 
-       val = _mkstemp(suffix, val);
+        val = _mkstemp(suffix, val);
 
 #ifndef __MINGW32CE__
         fd = _open(__template, _O_RDWR | _O_BINARY | _O_CREAT | _O_EXCL, _S_IREAD | _S_IWRITE);