commit:     b990a48b85b71f94323120e50f2ba97958351a97
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 16 11:45:37 2015 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Mon Feb 16 11:45:37 2015 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/portage-utils.git;a=commit;h=b990a48b

compat: define a S_BLKSIZE fallback value

This define isn't required by POSIX, so some systems omit it.  Define a
fallback value of 512 since that's what everyone generally uses.

URL: https://bugs.gentoo.org/529354

---
 libq/compat.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libq/compat.c b/libq/compat.c
index 928386b..8def2e9 100644
--- a/libq/compat.c
+++ b/libq/compat.c
@@ -51,3 +51,8 @@ char* strcasestr(const char *big, const char *little) {
 #ifdef __hpux
 # define S_BLKSIZE st.st_blksize
 #endif
+
+/* Everyone else */
+#ifndef S_BLKSIZE
+# define S_BLKSIZE 512
+#endif

Reply via email to