spandsp: unistd.h Source File

spandsp 0.0.6

unistd.h
1/*
2 * SpanDSP - a series of DSP components for telephony
3 *
4 * unistd.h - a fudge for MSVC, which lacks this header
5 *
6 * Written by Steve Underwood <steveu@coppice.org>
7 *
8 * Copyright (C) 2006 Michael Jerris
9 *
10 *
11 * This file is released in the public domain.
12 *
13 */
14
15#if !defined(_UNISTD_H_)
16#define _UNISTD_H_
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22// Declare this so we don't have to include winsock.h, it causes numerous conflicts.
23extern int __stdcall gethostname(char * name, int namelen);
24#pragma comment(lib, "ws2_32.lib")
25
26extern int getopt(int argc, char *argv[], char *opstring);
27
28extern char *optarg;
29
30#ifdef __cplusplus
31}
32#endif
33
34#endif