100-fix_iov_max.patch 637 B

12345678910111213141516171819202122232425
  1. Index: memcached-1.4.26/memcached.c
  2. ===================================================================
  3. --- memcached-1.4.26.orig/memcached.c
  4. +++ memcached-1.4.26/memcached.c
  5. @@ -13,6 +13,10 @@
  6. * Anatoly Vorobey <mellon@pobox.com>
  7. * Brad Fitzpatrick <brad@danga.com>
  8. */
  9. +#ifndef __need_IOV_MAX
  10. +#define __need_IOV_MAX
  11. +#endif
  12. +
  13. #include "memcached.h"
  14. #include <sys/stat.h>
  15. #include <sys/socket.h>
  16. @@ -30,9 +34,6 @@
  17. #define _P1003_1B_VISIBLE
  18. #endif
  19. /* need this to get IOV_MAX on some platforms. */
  20. -#ifndef __need_IOV_MAX
  21. -#define __need_IOV_MAX
  22. -#endif
  23. #include <pwd.h>
  24. #include <sys/mman.h>
  25. #include <fcntl.h>