OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.9 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../musl/pkg/man/man-gencat-include-fcntl.patch
  5. # Copyright (C) 2014 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. Include fcntl.h for getting the 'oflags' defined
  17. ---------------------------------------------------------------------------
  18. gencat.c: In function 'main':
  19. gencat.c:144:32: error: 'O_WRONLY' undeclared (first use in this function)
  20. gencat.c:144:32: note: each undeclared identifier is reported only once for each function it appears in
  21. gencat.c:144:41: error: 'O_TRUNC' undeclared (first use in this function)
  22. gencat.c:144:49: error: 'O_CREAT' undeclared (first use in this function)
  23. gencat.c:148:35: error: 'O_RDONLY' undeclared (first use in this function)
  24. gencat.c: In function 'writeIfChanged':
  25. gencat.c:201:24: error: 'O_WRONLY' undeclared (first use in this function)
  26. gencat.c:201:33: error: 'O_CREAT' undeclared (first use in this function)
  27. gencat.c:212:30: error: 'O_RDWR' undeclared (first use in this function)
  28. gencat.c:222:27: error: 'O_RDONLY' undeclared (first use in this function)
  29. gencat.c:253:33: error: 'O_TRUNC' undeclared (first use in this function)
  30. make[1]: *** [gencat.o] Error 1
  31. ---------------------------------------------------------------------------
  32. --- a/gencat/gencat.c
  33. +++ b/gencat/gencat.c
  34. @@ -52,6 +52,7 @@
  35. #ifdef __linux__
  36. #include <string.h>
  37. #include <unistd.h>
  38. +#include <fcntl.h>
  39. #endif
  40. #include <sys/file.h>
  41. #include <sys/stat.h>