aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhpa <hpa>2005-05-19 21:30:50 +0000
committerhpa <hpa>2005-05-19 21:30:50 +0000
commit18a2d5163b981425521fa73e9182702aa0e93294 (patch)
tree3ae7f7ff3a896311ec13bd3f6df8bac558c9c9bd
parentdab010fba1ef01f60751114657452db16248ba9d (diff)
downloadsyslinux.git-syslinux-3.09-pre1.tar.gz
syslinux.git-syslinux-3.09-pre1.tar.xz
syslinux.git-syslinux-3.09-pre1.zip
gcc4 compilation fixsyslinux-3.09-pre1
-rw-r--r--NEWS3
-rw-r--r--com32/lib/Makefile1
-rw-r--r--com32/lib/putchar.c16
-rw-r--r--version2
4 files changed, 21 insertions, 1 deletions
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 <stdio.h>
+
+#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