libfstools: fix build with glibc
authorDaniel Golle <daniel@makrotopia.org>
Fri, 5 Mar 2021 01:33:22 +0000 (01:33 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 5 Mar 2021 01:33:22 +0000 (01:33 +0000)
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>
libfstools/common.h

index 6798a54839256e436c42f4ce1a321d87ac1241f4..eeb24dbd89cdbb851031eaba4215a4790b7434a3 100644 (file)
@@ -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>