Просмотр исходного кода

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

Ned Ludd 21 лет назад
Родитель
Сommit
bed3e178c5
1 измененных файлов с 5 добавлено и 0 удалено
  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
 #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;
 
 void __guard_setup(void) __attribute__ ((constructor));