2008-09-03 19:02:00 +00:00
|
|
|
/*
|
|
|
|
* SpanDSP - a series of DSP components for telephony
|
|
|
|
*
|
2009-02-25 05:45:36 +00:00
|
|
|
* unistd.h - a fudge for MSVC, which lacks this header
|
2008-09-03 19:02:00 +00:00
|
|
|
*
|
|
|
|
* Written by Steve Underwood <steveu@coppice.org>
|
|
|
|
*
|
|
|
|
* Copyright (C) 2006 Michael Jerris
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* This file is released in the public domain.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2009-02-20 18:22:32 +00:00
|
|
|
#if !defined(_UNISTD_H_)
|
|
|
|
#define _UNISTD_H_
|
2008-09-03 19:02:00 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2009-02-25 05:45:36 +00:00
|
|
|
// Declare this so we don't have to include winsock.h, it causes numerous conflicts.
|
|
|
|
extern int __stdcall gethostname(char * name, int namelen);
|
|
|
|
#pragma comment(lib, "ws2_32.lib")
|
2008-09-03 19:02:00 +00:00
|
|
|
|
2009-02-20 18:22:32 +00:00
|
|
|
extern int getopt(int argc, char *argv[], char *opstring);
|
|
|
|
|
|
|
|
extern char *optarg;
|
2008-09-03 19:02:00 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|