Changeset 654

Show
Ignore:
Timestamp:
12/02/07 02:06:51 (1 year ago)
Author:
dormando
Message:

If no IOV_MAX, and you're freebsd or apple platforms, define it.
I can't figure out how to reliably detect what version of OS_X is running.
If you're an apple dev and read this, please fix the code to only evaluate on 10.3 or lower. Please test both conditionals.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/server/memcached.c

    r652 r654  
    5555/* FreeBSD 4.x doesn't have IOV_MAX exposed. */ 
    5656#ifndef IOV_MAX 
    57 #if defined(__FreeBSD__) || MAC_OS_X_VERSION_MAX_ALLOWED >= 1030 
     57#if defined(__FreeBSD__) || defined(__APPLE__) 
    5858# define IOV_MAX 1024 
    5959#endif