diff options
author | hpa <hpa> | 2005-05-19 21:30:50 +0000 |
---|---|---|
committer | hpa <hpa> | 2005-05-19 21:30:50 +0000 |
commit | 18a2d5163b981425521fa73e9182702aa0e93294 (patch) | |
tree | 3ae7f7ff3a896311ec13bd3f6df8bac558c9c9bd | |
parent | dab010fba1ef01f60751114657452db16248ba9d (diff) | |
download | syslinux-18a2d5163b981425521fa73e9182702aa0e93294.tar.gz |
gcc4 compilation fixsyslinux-3.09-pre1
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | com32/lib/Makefile | 1 | ||||
-rw-r--r-- | com32/lib/putchar.c | 16 | ||||
-rw-r--r-- | version | 2 |
4 files changed, 21 insertions, 1 deletions
@@ -2,6 +2,9 @@ Starting with 1.47, changes marked with SYSLINUX/PXELINUX/ISOLINUX apply to that specific program only; other changes apply to all of them. +Changes in 3.09: + * gcc4 compilation fix. + Changes in 3.08: * SYSLINUX: Fix performance regression (-s mode always enabled.) diff --git a/com32/lib/Makefile b/com32/lib/Makefile index 842f5f53..7dea7afb 100644 --- a/com32/lib/Makefile +++ b/com32/lib/Makefile @@ -3,6 +3,7 @@ include MCONFIG LIBOBJS = abort.o atexit.o atoi.o atol.o atoll.o calloc.o creat.o \ ctypes.o errno.o fgetc.o fgets.o fopen.o fprintf.o fputc.o \ + putchar.o \ fputs.o fread2.o fread.o free.o fwrite2.o fwrite.o getopt.o \ lrand48.o malloc.o stack.o memccpy.o memchr.o memcmp.o \ memcpy.o memmem.o memmove.o memset.o memswap.o exit.o onexit.o \ diff --git a/com32/lib/putchar.c b/com32/lib/putchar.c new file mode 100644 index 00000000..4b340d17 --- /dev/null +++ b/com32/lib/putchar.c @@ -0,0 +1,16 @@ +/* + * putchar.c + * + * gcc "printf decompilation" expects this to exist... + */ + +#include <stdio.h> + +#undef putchar + +int putchar(int c) +{ + unsigned char ch = c; + + return _fwrite(&ch, 1, stdout) == 1 ? ch : EOF; +} @@ -1 +1 @@ -3.08 +3.09 |