This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sable
Recipients darkside, drj, haubi, inkblotter, pitrou, sable
Date 2010-09-07.14:51:16
SpamBayes Score 7.60888e-05
Marked as misclassified No
Message-id <>
Here is a new test for flock. HAVE_FLOCK is defined if we can link a C application calling flock, or if flock is defined in libbsd.
FLOCK_NEEDS_LIBBSD is also defined in the second case.

AC_MSG_CHECKING(for flock)
#include "confdefs.h" 
#include <sys/file.h>
], [void* p = flock; flock(0, 0)],
  [AC_CHECK_LIB(bsd,flock, [
    AC_DEFINE(FLOCK_NEEDS_LIBBSD, 1, Define if flock needs to be linked with bsd library.)
if test "$have_flock" = yes ; then
  AC_DEFINE(HAVE_FLOCK, 1, Define if you have the 'flock' function.)

I think that this new test would also cover your case with a broken AIX libbsd? [I haven't actually tried to compile it yet, if the behavior is OK I will test it in both autoconf formats and provide some new patches tomorrow]
Date User Action Args
2010-09-07 14:51:18sablesetrecipients: + sable, pitrou, drj, inkblotter, darkside, haubi
2010-09-07 14:51:18sablesetmessageid: <>
2010-09-07 14:51:17sablelinkissue4026 messages
2010-09-07 14:51:16sablecreate