0003-Fix-unistd.h-include.patch 1001 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. From 85c33f89df8607ace0707e1360ff0f79f3e8f5f3 Mon Sep 17 00:00:00 2001
  2. From: Andy Walsh <andy.walsh44+github@gmail.com>
  3. Date: Wed, 6 Nov 2019 19:28:30 +0100
  4. Subject: [PATCH] Fix unistd.h include
  5. Fixes build error
  6. source4/heimdal/lib/asn1/asn1_err.c:47:23: error: 'link' redeclared as different kind of symbol
  7. static struct et_list link = { 0, 0 };
  8. Downloaded from
  9. https://github.com/Andy2244/openwrt-extra/blob/samba-4.10/samba4/patches/006-samba-4-10-musl_rm_unistd_incl.patch
  10. Upstream bug report: https://bugzilla.samba.org/show_bug.cgi?id=13856
  11. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  12. ---
  13. lib/replace/replace.h | 4 ----
  14. 1 file changed, 4 deletions(-)
  15. diff --git a/lib/replace/replace.h b/lib/replace/replace.h
  16. index 1658465866e..e6768c4ae51 100644
  17. --- a/lib/replace/replace.h
  18. +++ b/lib/replace/replace.h
  19. @@ -168,10 +168,6 @@
  20. #include <bsd/unistd.h>
  21. #endif
  22. -#ifdef HAVE_UNISTD_H
  23. -#include <unistd.h>
  24. -#endif
  25. -
  26. #ifdef HAVE_STRING_H
  27. #include <string.h>
  28. #endif
  29. --
  30. 2.20.1