From 18a2d5163b981425521fa73e9182702aa0e93294 Mon Sep 17 00:00:00 2001 From: hpa Date: Thu, 19 May 2005 21:30:50 +0000 Subject: gcc4 compilation fix --- NEWS | 3 +++ com32/lib/Makefile | 1 + com32/lib/putchar.c | 16 ++++++++++++++++ version | 2 +- 4 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 com32/lib/putchar.c diff --git a/NEWS b/NEWS index 7b0be3e0..0a37cbfe 100644 --- a/NEWS +++ b/NEWS @@ -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 + +#undef putchar + +int putchar(int c) +{ + unsigned char ch = c; + + return _fwrite(&ch, 1, stdout) == 1 ? ch : EOF; +} diff --git a/version b/version index 6fe94f3c..4db1756b 100644 --- a/version +++ b/version @@ -1 +1 @@ -3.08 +3.09 -- cgit v1.2.1