Skip to content
Snippets Groups Projects
Commit 9d107370 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Fixed bug in readdir_r() check.

Rev: src/modules/files/efuns.c:1.52
parent bb2da128
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include "file_machine.h" #include "file_machine.h"
#include "file.h" #include "file.h"
RCSID("$Id: efuns.c,v 1.51 1998/06/22 20:07:08 grubba Exp $"); RCSID("$Id: efuns.c,v 1.52 1998/06/28 16:15:26 grubba Exp $");
#ifdef HAVE_SYS_TYPES_H #ifdef HAVE_SYS_TYPES_H
#include <sys/types.h> #include <sys/types.h>
...@@ -390,8 +390,8 @@ void f_mkdir(INT32 args) ...@@ -390,8 +390,8 @@ void f_mkdir(INT32 args)
} }
#undef HAVE_READDIR_R #undef HAVE_READDIR_R
#if defined(HAVE_SOLARIS_READDIR_R) || defined(HAVE_SOLARIS_HPUX_R) || \ #if defined(HAVE_SOLARIS_READDIR_R) || defined(HAVE_HPUX_READDIR_R) || \
defined(HAVE_POSIX_R) defined(HAVE_POSIX_READDIR_R)
#define HAVE_READDIR_R #define HAVE_READDIR_R
#endif #endif
...@@ -441,7 +441,6 @@ void f_get_dir(INT32 args) ...@@ -441,7 +441,6 @@ void f_get_dir(INT32 args)
while(1) while(1)
{ {
/* Should have code for the POSIX variant here also */
#ifdef HAVE_SOLARIS_READDIR_R #ifdef HAVE_SOLARIS_READDIR_R
/* Solaris readdir_r returns the second arg on success, /* Solaris readdir_r returns the second arg on success,
* and returns NULL on error or at end of dir. * and returns NULL on error or at end of dir.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment