samba-fix-mount.cifs.patch 944 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --- a/source/client/mount.cifs.c
  2. +++ b/source/client/mount.cifs.c
  3. @@ -16,6 +16,10 @@
  4. You should have received a copy of the GNU General Public License
  5. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  6. +#ifdef _SAMBA_BUILD_
  7. +#include "include/config.h"
  8. +#endif
  9. +
  10. #ifndef _GNU_SOURCE
  11. #define _GNU_SOURCE
  12. #endif
  13. @@ -57,10 +61,6 @@
  14. #endif /* _SAMBA_BUILD_ */
  15. #endif /* MOUNT_CIFS_VENDOR_SUFFIX */
  16. -#ifdef _SAMBA_BUILD_
  17. -#include "include/config.h"
  18. -#endif
  19. -
  20. #ifndef MS_MOVE
  21. #define MS_MOVE 8192
  22. #endif
  23. @@ -138,6 +138,7 @@ static size_t strlcat(char *d, const cha
  24. return ret;
  25. }
  26. #endif
  27. +#endif /* __GLIBC__ && !(__UCLIBC__ && __USE_BSD) */
  28. /* BB finish BB
  29. @@ -178,7 +179,6 @@ static void mount_cifs_usage(void)
  30. SAFE_FREE(mountpassword);
  31. exit(EX_USAGE);
  32. }
  33. -#endif /* __GLIBC__ && !(__UCLIBC__ && __USE_BSD) */
  34. /* caller frees username if necessary */
  35. static char * getusername(void) {