Skip to contentSkip to conversation

Make workaround for old glibc getsubopt() glibc-specific

PATCH In review Felix Janda 1 participant 1 message Jun 18, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 3/4 Make workaround for old glibc getsubopt() glibc-specific

---
 include/linux.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux.h +1 -1
index f6d0f80..873b682 100644
@@ -132,7 +132,7 @@ platform_discard_blocks(int fd, uint64_t start, uint64_t len)
 	return 0;
 }
 
-#if (__GLIBC__ < 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ <= 1))
+#if defined(__GLIBC__) && ((__GLIBC__ < 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ <= 1)))
 # define getsubopt(p, s, v)	getsubopt(p, (const char * const *)s, v)
 #endif
 
Signature · 6 lines
2.7.3

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs