| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 3/4] Make workaround for old glibc getsubopt() glibc-specific |
| From: | Felix Janda <felix.janda@xxxxxxxxx> |
| Date: | Sat, 18 Jun 2016 16:53:07 +0200 |
| Delivered-to: | xfs@xxxxxxxxxxx |
| User-agent: | Mutt/1.6.1 (2016-04-27) |
Signed-off-by: Felix Janda <felix.janda@xxxxxxxxx>
---
include/linux.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux.h b/include/linux.h
index f6d0f80..873b682 100644
--- a/include/linux.h
+++ b/include/linux.h
@@ -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
--
2.7.3
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 2/4] Simplify workaround for old glibc getsubopt(), Felix Janda |
|---|---|
| Next by Date: | Re: [PATCH 2/6] libxfs/linux.c: Replace use of ustat by stat, Felix Janda |
| Previous by Thread: | [PATCH 2/4] Simplify workaround for old glibc getsubopt(), Felix Janda |
| Next by Thread: | Re: [PATCH 2/6] libxfs/linux.c: Replace use of ustat by stat, Felix Janda |
| Indexes: | [Date] [Thread] [Top] [All Lists] |