[hackers] [sbase] Use -D_FILE_OFFSET_BITS=64 by default || sin

From: <git_AT_suckless.org>
Date: Fri, 13 Nov 2015 12:01:05 +0100 (CET)

commit eaf3f4811ba726b451ccfadcdae02df76038d49a
Author: sin <sin_AT_2f30.org>
AuthorDate: Fri Nov 13 10:59:37 2015 +0000
Commit: sin <sin_AT_2f30.org>
CommitDate: Fri Nov 13 11:01:00 2015 +0000

    Use -D_FILE_OFFSET_BITS=64 by default
    
    Maybe people seem to stumble upon this problem on 32-bit glibc based
    systems. Just set it by default.

diff --git a/config.mk b/config.mk
index 373e20d..9fb18da 100644
--- a/config.mk
+++ b/config.mk
_AT_@ -10,8 +10,7 @@ AR = ar
 RANLIB = ranlib
 
 # for NetBSD add -D_NETBSD_SOURCE
-# for glibc on 32bit add -D_FILE_OFFSET_BITS=64 or use something sane
 # -lrt might be needed on some systems
-CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700
+CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_FILE_OFFSET_BITS=64
 CFLAGS = -std=c99 -Wall -pedantic
 LDFLAGS = -s
Received on Fri Nov 13 2015 - 12:01:05 CET

This archive was generated by hypermail 2.3.0 : Fri Nov 13 2015 - 12:12:11 CET