1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00
elinks/src/osdep
Kalle Olavi Niemitalo 61019c3130 Debian bug 464384: fix OFF_T_FORMAT mismatches on amd64
On AMD64 apparently, off_t is long but ELinks detected SIZEOF_OFF_T == 8
and defined OFF_T_FORMAT as "lld", which expects long long and so causes
GCC to warn about a mismatching format specifier.  Because --enable-debug
adds -Werror to $CFLAGS, this warning breaks the build.  When both
SIZEOF_LONG and SIZEOF_LONG_LONG are 8, ELinks cannot know which type
it should use.

To fix this, do not attempt to find a format specifier for off_t itself.
Instead cast all printed off_t values to a new typedef off_print_T that
is large enough, and replace OFF_T_FORMAT with OFF_PRINT_FORMAT which
is suitable for off_print_T altough not necessarily for off_t.  ELinks
already had a similar scheme with time_print_T and TIME_PRINT_FORMAT.
2008-02-10 11:30:27 +02:00
..
beos Declare element types of lists. 2007-07-26 22:47:23 +03:00
os2 Doxygenate src/util/ 2007-07-27 13:10:50 +03:00
riscos Autogenerate .vimrc files and put the master in config/vimrc 2006-01-15 18:38:58 +01:00
unix terminal: Define separate structs for events passed via the interlink socket. 2006-08-06 20:02:39 +00:00
win32 Win32: Put .elinks in Application Data if %HOME% is undefined. 2007-07-18 00:27:08 +03:00
ascii.h Remove empty lines in start of header files 2005-11-15 11:33:27 +01:00
generic.h Debian bug 464384: fix cast warning in alignof 2008-02-09 00:24:45 +02:00
getifaddrs.c Use PF_* instead of AF_* as first parameter of socket(2). 2006-01-04 00:32:58 +01:00
getifaddrs.h Remove empty lines in start of header files 2005-11-15 11:33:27 +01:00
Makefile Sort Makefile conditionals 2006-01-14 10:41:58 +01:00
newwin.c Name the exec_on_terminal() fg values. 2007-07-15 23:46:18 +03:00
newwin.h Remove empty lines in start of header files 2005-11-15 11:33:27 +01:00
osdep.c Bug 54: Don't disable XON/XOFF flow control. 2008-02-04 23:22:15 +02:00
osdep.h Win32: Put .elinks in Application Data if %HOME% is undefined. 2007-07-18 00:27:08 +03:00
signals.c unblock_itrm(),block_itrm(): drop unused parameter fd. 2007-03-05 22:54:24 +01:00
signals.h Remove now useless $Id: lines. 2005-10-21 09:14:07 +02:00
stat.h Complete the list of S_I* macros. 2006-01-10 23:59:14 +01:00
stub.c CONFIG_WIN32 -> CONFIG_OS_WIN32 2006-01-11 20:10:27 +01:00
stub.h Merge with git+ssh://pasky.or.cz/srv/git/elinks.git 2005-11-27 19:40:49 +00:00
sysname.c Remove now useless $Id: lines. 2005-10-21 09:14:07 +02:00
sysname.h Remove empty lines in start of header files 2005-11-15 11:33:27 +01:00
system.h CONFIG_BEOS -> CONFIG_OS_BEOS 2006-01-11 20:12:59 +01:00
types.h Debian bug 464384: fix OFF_T_FORMAT mismatches on amd64 2008-02-10 11:30:27 +02:00