浏览代码

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

Ned Ludd 21 年之前
父节点
当前提交
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));