OSDN Git Service

- keep gcc-4.x happy
authorNed Ludd <solar@gentoo.org>
Fri, 27 May 2005 19:46:34 +0000 (19:46 -0000)
committerNed Ludd <solar@gentoo.org>
Fri, 27 May 2005 19:46:34 +0000 (19:46 -0000)
libc/sysdeps/linux/common/Makefile
libc/sysdeps/linux/common/ssp.c

index 5e17cc9..84b29ac 100644 (file)
@@ -28,6 +28,7 @@ endif
 ifneq ($(strip $(UCLIBC_HAS_SSP)),y)
 SRCS := $(filter-out ssp.c,$(SRCS))
 endif
+ssp.o: CFLAGS += $(SSP_DISABLE_FLAGS)
 
 OBJS  = $(patsubst %.c,%.o, $(SRCS))
 
index e58dfdb..9db8338 100644 (file)
 # include <config.h>
 #endif
 
+#ifdef __SSP__
+#error ssp.c has to be built w/ -fno-stack-protector
+#endif
+
 #include <stdio.h>
 #include <string.h>
 #include <fcntl.h>
@@ -42,7 +46,7 @@
 #endif
 
 /* prototypes */
-extern int __libc_open (__const char *file, int oflag, mode_t mode);
+extern int __libc_open (__const char *file, int oflag, ...);
 extern ssize_t __libc_read(int fd, void *buf, size_t count);
 extern int __libc_close (int fd);