signal: Define NSIG.
[pspp] / lib / openat-proc.c
index 25384127ebf944f7aeb83ef11e40ef19afb34776..76fe42ce63faa44ff90b1e2660dbc0b18b1ecc7b 100644 (file)
@@ -75,7 +75,7 @@ openat_proc_name (char buf[OPENAT_BUFFER_SIZE], int fd, char const *file)
          problem is exhibited on code that built on Solaris 8 and
          running on Solaris 10.  */
 
-      int proc_self_fd = open ("/proc/self/fd", O_RDONLY);
+      int proc_self_fd = open ("/proc/self/fd", O_SEARCH);
       if (proc_self_fd < 0)
         proc_status = -1;
       else