Explorar el Código

- added externs to keep gcc quiet about implicit declaration of 3 functions

Ned Ludd hace 21 años
padre
commit
bed3e178c5
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      libc/sysdeps/linux/common/ssp.c

+ 5 - 0
libc/sysdeps/linux/common/ssp.c

@@ -41,6 +41,11 @@
 #define SSP_SIGTYPE SIGABRT
 #define SSP_SIGTYPE SIGABRT
 #endif
 #endif
 
 
+/* prototypes */
+extern int __libc_open (__const char *file, int oflag, mode_t mode);
+extern ssize_t __libc_read(int fd, void *buf, size_t count);
+extern int __libc_close (int fd);
+
 unsigned long __guard = 0UL;
 unsigned long __guard = 0UL;
 
 
 void __guard_setup(void) __attribute__ ((constructor));
 void __guard_setup(void) __attribute__ ((constructor));