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.

25 lines
637 B

  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>