summaryrefslogtreecommitdiff
path: root/src/rm.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-10-02 02:09:38 +0000
committerJim Meyering <jim@meyering.net>1994-10-02 02:09:38 +0000
commitf17c045d219e48e96f7a35d37f239627fa0f8fcf (patch)
treec1cc2f8565c315aebefda2e283632a00595fa4d0 /src/rm.c
parentb055972c6b12e52f0e41a47d47b711e10b530c1b (diff)
downloadcoreutils-f17c045d219e48e96f7a35d37f239627fa0f8fcf.tar.xz
.
Diffstat (limited to 'src/rm.c')
-rw-r--r--src/rm.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/rm.c b/src/rm.c
index 438e8fa42..5ff703cba 100644
--- a/src/rm.c
+++ b/src/rm.c
@@ -17,17 +17,7 @@
/* Written by Paul Rubin, David MacKenzie, and Richard Stallman. */
-#ifdef HAVE_CONFIG_H
-#if defined (CONFIG_BROKETS)
-/* We use <config.h> instead of "config.h" so that a compilation
- using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
- (which it would do because it found this file in $srcdir). */
#include <config.h>
-#else
-#include "config.h"
-#endif
-#endif
-
#include <stdio.h>
#include <getopt.h>
#include <sys/types.h>
@@ -35,12 +25,11 @@
#include "version.h"
#include "safe-lstat.h"
-#ifdef _POSIX_SOURCE
+#ifdef D_INO_IN_DIRENT
+#define D_INO(dp) ((dp)->d_ino)
+#else
/* POSIX.1 doesn't have inodes, so fake them to avoid lots of ifdefs. */
-#define ino_t unsigned long
#define D_INO(dp) 1
-#else
-#define D_INO(dp) ((dp)->d_ino)
#endif
char *basename ();