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.

23 lines
498 B

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