From: Stanislav Malyshev Date: Mon, 25 Mar 2013 02:03:04 +0000 (-0700) Subject: fix bug #64490 - add __FreeBSD_kernel__ to allowed FreeBSD defs X-Git-Tag: php-5.6.0alpha1~448^2~92^2~1^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bd0b09c6103490437a30592d2adf1d3935f8e90c;p=php fix bug #64490 - add __FreeBSD_kernel__ to allowed FreeBSD defs --- diff --git a/ext/opcache/ZendAccelerator.h b/ext/opcache/ZendAccelerator.h index 3f10630ac8..ddcb7a16e4 100644 --- a/ext/opcache/ZendAccelerator.h +++ b/ext/opcache/ZendAccelerator.h @@ -93,7 +93,7 @@ #ifndef ZEND_WIN32 extern int lock_file; -# if defined(__FreeBSD__) || (defined(__APPLE__) && defined(__MACH__)/* Darwin */) || defined(__OpenBSD__) || defined(__NetBSD__) +# if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || (defined(__APPLE__) && defined(__MACH__)/* Darwin */) || defined(__OpenBSD__) || defined(__NetBSD__) # define FLOCK_STRUCTURE(name, type, whence, start, len) \ struct flock name = {start, len, -1, type, whence} # elif defined(__svr4__)