spandsp
0.0.6
|
00001 /* 00002 * SpanDSP - a series of DSP components for telephony 00003 * 00004 * unistd.h - a fudge for MSVC, which lacks this header 00005 * 00006 * Written by Steve Underwood <steveu@coppice.org> 00007 * 00008 * Copyright (C) 2006 Michael Jerris 00009 * 00010 * 00011 * This file is released in the public domain. 00012 * 00013 */ 00014 00015 #if !defined(_UNISTD_H_) 00016 #define _UNISTD_H_ 00017 00018 #ifdef __cplusplus 00019 extern "C" { 00020 #endif 00021 00022 // Declare this so we don't have to include winsock.h, it causes numerous conflicts. 00023 extern int __stdcall gethostname(char * name, int namelen); 00024 #pragma comment(lib, "ws2_32.lib") 00025 00026 extern int getopt(int argc, char *argv[], char *opstring); 00027 00028 extern char *optarg; 00029 00030 #ifdef __cplusplus 00031 } 00032 #endif 00033 00034 #endif