summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@samsung.com>2013-06-25 12:16:36 +0900
committerCedric Bail <cedric.bail@samsung.com>2013-06-25 12:16:36 +0900
commit4605b91804836878b86de8761b3ae8e81b34ed46 (patch)
tree1ac8b6850b88bde02be249e40eb28df5f1a9edd2
parent443a1db04ac422c65c47f636112473c48190deb4 (diff)
evil: returned the good value for mkstemp
Added back some needed defines for elementary (was in evil 1.7.7).
-rw-r--r--src/lib/evil/Evil.h3
-rw-r--r--src/lib/evil/evil_stdlib.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/evil/Evil.h b/src/lib/evil/Evil.h
index 0aad5f0613..eb84ec6614 100644
--- a/src/lib/evil/Evil.h
+++ b/src/lib/evil/Evil.h
@@ -193,6 +193,9 @@ typedef unsigned long gid_t;
193# define _S_IWUSR _S_IWRITE 193# define _S_IWUSR _S_IWRITE
194# define _S_IRUSR _S_IREAD 194# define _S_IRUSR _S_IREAD
195 195
196#define S_IRWXO _S_IRWXU
197#define S_IRWXG _S_IRWXU
198
196# define mkdir(p,m) _mkdir(p) 199# define mkdir(p,m) _mkdir(p)
197 /* 200 /*
198# define close(fd) _close(fd) 201# define close(fd) _close(fd)
diff --git a/src/lib/evil/evil_stdlib.c b/src/lib/evil/evil_stdlib.c
index b7c814ec44..3e063931a5 100644
--- a/src/lib/evil/evil_stdlib.c
+++ b/src/lib/evil/evil_stdlib.c
@@ -310,7 +310,7 @@ _mkstemp(char *suffix, int val)
310 310
311 val += 7777; 311 val += 7777;
312 312
313 return v; 313 return val;
314} 314}
315 315
316EAPI char * 316EAPI char *
@@ -369,7 +369,7 @@ mkstemp(char *__template)
369 { 369 {
370 int fd; 370 int fd;
371 371
372 val = _mkstemp(suffix, val); 372 val = _mkstemp(suffix, val);
373 373
374#ifndef __MINGW32CE__ 374#ifndef __MINGW32CE__
375 fd = _open(__template, _O_RDWR | _O_BINARY | _O_CREAT | _O_EXCL, _S_IREAD | _S_IWRITE); 375 fd = _open(__template, _O_RDWR | _O_BINARY | _O_CREAT | _O_EXCL, _S_IREAD | _S_IWRITE);