Thu Jul 25 12:08:09 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
[deliverable/binutils-gdb.git] / gdb / source.c
index b2c4a5628c0afe7d912858c170b77e6f1d0931e8..e2ceb91cc328e5add4606977b3596fa79a2d4eea 100644 (file)
@@ -27,9 +27,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include "frame.h"
 
 #include <sys/types.h>
-#include <string.h>
+#include "gdb_string.h"
 #include <sys/param.h>
-#include <sys/stat.h>
+#include "gdb_stat.h"
 #include <fcntl.h>
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
@@ -364,7 +364,7 @@ mod_path (dirname, which_path)
            fprintf_unfiltered (gdb_stderr, "Warning: ");
            print_sys_errmsg (name, save_errno);
          }
-       else if (!S_ISDIR(st.st_mode))
+       else if ((st.st_mode & S_IFMT) != S_IFDIR)
          warning ("%s is not a directory.", name);
       }
 
This page took 0.024866 seconds and 4 git commands to generate.