diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2001-08-08 10:28:06 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2001-08-08 10:28:06 (GMT) |
commit | f9836ba4fea66d74fc2afddc434a147265a9caa7 (patch) | |
tree | 868672f429a7a963f58dc0dc671b0f907c0a84fd /Modules | |
parent | e00dde2087db2c211f9c9267659d37e3306f79d8 (diff) | |
download | cpython-f9836ba4fea66d74fc2afddc434a147265a9caa7.zip cpython-f9836ba4fea66d74fc2afddc434a147265a9caa7.tar.gz cpython-f9836ba4fea66d74fc2afddc434a147265a9caa7.tar.bz2 |
Put conditional S_ISDIR definition(s) into pyport.h.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/getpath.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Modules/getpath.c b/Modules/getpath.c index 2fd8f75..76bc320 100644 --- a/Modules/getpath.c +++ b/Modules/getpath.c @@ -5,7 +5,6 @@ #include "osdefs.h" #include <sys/types.h> -#include <sys/stat.h> #include <string.h> #if HAVE_UNISTD_H @@ -138,14 +137,6 @@ reduce(char *dir) } -#ifndef S_ISREG -#define S_ISREG(x) (((x) & S_IFMT) == S_IFREG) -#endif - -#ifndef S_ISDIR -#define S_ISDIR(x) (((x) & S_IFMT) == S_IFDIR) -#endif - static int isfile(char *filename) /* Is file, not directory */ { |