303-fix-broken-__libc_open-declaration.patch 930 B

123456789101112131415161718192021222324252627282930
  1. From nobody Mon Sep 17 00:00:00 2001
  2. From: Håvard Skinnemoen <[email protected]>
  3. Date: Fri Apr 7 17:10:32 2006 +0200
  4. Subject: [PATCH] Fix broken __libc_open declaration in open64.c
  5. __libc_open is a vararg function and should therefore be declared as
  6. such. Fixes bug #4190.
  7. ---
  8. libc/sysdeps/linux/common/open64.c | 2 +-
  9. 1 files changed, 1 insertions(+), 1 deletions(-)
  10. 70f2c81903327a8a346e370830932b80045ab04e
  11. diff --git a/libc/sysdeps/linux/common/open64.c b/libc/sysdeps/linux/common/open64.c
  12. index 543aa13..d9a27a7 100644
  13. --- a/libc/sysdeps/linux/common/open64.c
  14. +++ b/libc/sysdeps/linux/common/open64.c
  15. @@ -26,7 +26,7 @@
  16. #endif
  17. #ifdef __UCLIBC_HAS_LFS__
  18. -extern int __libc_open (__const char *file, int oflag, mode_t mode);
  19. +extern int __libc_open (__const char *file, int oflag, ...);
  20. /* Open FILE with access OFLAG. If OFLAG includes O_CREAT,
  21. a third argument is the file protection. */
  22. --
  23. 1.2.4