Christian Heimes added the comment: I think it's more portable with a #ifdef HAVE_FCNTL_H block around the include. ---------- nosy: +christian.heimes _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue24217> _______________________________________