about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/pm.h2
-rw-r--r--lib/pmfileio.c5
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/pm.h b/lib/pm.h
index 21efea20..88f61522 100644
--- a/lib/pm.h
+++ b/lib/pm.h
@@ -86,7 +86,7 @@ extern "C" {
    We're ignoring S_IREAD now to see if anyone misses it.  If there are still
    users that need it, we can handle it here.
 */
-#if WIN32
+#ifdef WIN32
   #define PM_S_IWUSR _S_IWRITE
   #define PM_S_IRUSR _S_IREAD
 #else
diff --git a/lib/pmfileio.c b/lib/pmfileio.c
index 585388c2..abcb05cf 100644
--- a/lib/pmfileio.c
+++ b/lib/pmfileio.c
@@ -123,16 +123,15 @@ tempFileOpenFlags(void) {
         | O_CREAT
         | O_RDWR
 #ifndef WIN32
-        O_EXCL
+        | O_EXCL
 #endif
 #ifdef WIN32
-        O_BINARY
+        | O_BINARY
 #endif
         ;
 
     return retval;
 }
-, S_IRUSR | S_IWUSR