summaryrefslogtreecommitdiff
path: root/libfstools
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2021-03-05 01:33:22 +0000
committerDaniel Golle <daniel@makrotopia.org>2021-03-05 01:33:22 +0000
commit3c38f0c889177dfac51fa7213c567a110709be71 (patch)
treeac41b33c479e14dc28ba15b673a055dd23ea1b46 /libfstools
parent19d7d9313d9e868669ae6cb1bf9e840ba2461b41 (diff)
downloadfstools-3c38f0c889177dfac51fa7213c567a110709be71.tar.gz
libfstools: fix build with glibc
stropts.h which is unavailable under glibc (and not needed when building against glibc). Include it only if not building against glibc. Reported by: @DazzyWalkman Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'libfstools')
-rw-r--r--libfstools/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libfstools/common.h b/libfstools/common.h
index 6798a54..eeb24db 100644
--- a/libfstools/common.h
+++ b/libfstools/common.h
@@ -11,7 +11,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#ifndef __GLIBC__
#include <stropts.h>
+#endif
#include <dirent.h>
#include <fcntl.h>
#include <unistd.h>