summaryrefslogtreecommitdiff
path: root/lib/stat.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-09-03 16:08:32 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2011-09-03 16:08:32 -0700
commit7f59d9c856de33b97bc3f2708dcc8dadf24ee040 (patch)
treeeb0c7bb18b57498965581881a5cccd5f1de48166 /lib/stat.c
parentb49e353d9d01adbe60bc5d0b1658b4ef978b0b06 (diff)
downloademacs-7f59d9c856de33b97bc3f2708dcc8dadf24ee040.tar.gz
Merge from gnulib.
Diffstat (limited to 'lib/stat.c')
-rw-r--r--lib/stat.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/stat.c b/lib/stat.c
index f07370dd06b..6c354d1d357 100644
--- a/lib/stat.c
+++ b/lib/stat.c
@@ -16,10 +16,13 @@
/* written by Eric Blake */
+/* If the user's config.h happens to include <sys/stat.h>, let it include only
+ the system's <sys/stat.h> here, so that orig_stat doesn't recurse to
+ rpl_stat. */
+#define __need_system_sys_stat_h
#include <config.h>
/* Get the original definition of stat. It might be defined as a macro. */
-#define __need_system_sys_stat_h
#include <sys/types.h>
#include <sys/stat.h>
#undef __need_system_sys_stat_h