Branch: Tag:

2003-09-19

2003-09-19 12:27:51 by Jonas Wallden <jonasw@roxen.com>

More Mac OS X poll() fixes.

Rev: src/builtin_functions.c:1.463
Rev: src/modules/HTTPLoop/timeout.c:1.11

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: builtin_functions.c,v 1.462 2003/08/19 09:38:16 tomas Exp $ + || $Id: builtin_functions.c,v 1.463 2003/09/19 12:27:50 jonasw Exp $   */      #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.462 2003/08/19 09:38:16 tomas Exp $"); + RCSID("$Id: builtin_functions.c,v 1.463 2003/09/19 12:27:50 jonasw Exp $");   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"
3476: Inside #if defined(__NT__)
  #ifdef __NT__    Sleep(DO_NOT_WARN((int)(left*1000)));   #elif defined(HAVE_POLL) -  poll(NULL,0,(int)(left*1000)); +  { +  /* MacOS X is stupid, and requires a non-NULL pollfd pointer. */ +  struct pollfd sentinel; +  poll(&sentinel, 0, (int)(left*1000)); +  }   #else    {    struct timeval t3;
3590: Inside #if defined(__NT__)
  #ifdef __NT__    Sleep(DO_NOT_WARN((int)(left*1000)));   #elif defined(HAVE_POLL) -  poll(NULL,0,(int)(left*1000)); +  { +  /* MacOS X is stupid, and requires a non-NULL pollfd pointer. */ +  struct pollfd sentinel; +  poll(&sentinel, 0, (int)(left*1000)); +  }   #else    {    struct timeval t3;
4344:    case '\'':    case '+':    case '~': -  break; +  continue;    /* Attributes */    case '.':    case ':':