| commit | f07c976dd07c8bd6e75fa42adff513d997914a3b | [log] [tgz] |
|---|---|---|
| author | Thomas Klausner <tk@giga.or.at> | Sun Jun 15 23:44:49 2014 +0200 |
| committer | Thomas Klausner <tk@giga.or.at> | Sun Jun 15 23:44:49 2014 +0200 |
| tree | b57238296e6d5e43027bb59b0fa15b42320e7958 | |
| parent | ce6b58a9881aa5a804894bfed6029cdd4b823585 [diff] |
Add S_ISDIR compat define. From Patrick Spendrin.
diff --git a/src/compat.h b/src/compat.h index cdc73b5..a6be8bb 100644 --- a/src/compat.h +++ b/src/compat.h
@@ -54,4 +54,8 @@ #endif #endif +#ifndef S_ISDIR +#define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) +#endif + #endif