view spandsp-0.0.6pre17/src/msvc/unistd.h @ 4:26cd8f1ef0b1

import spandsp-0.0.6pre17
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Fri, 25 Jun 2010 15:50:58 +0200
parents
children
line wrap: on
line source

/*
 * SpanDSP - a series of DSP components for telephony
 *
 * unistd.h - a fudge for MSVC, which lacks this header
 *
 * Written by Steve Underwood <steveu@coppice.org>
 *
 * Copyright (C) 2006 Michael Jerris
 *
 *
 * This file is released in the public domain.
 *
 */

#if !defined(_UNISTD_H_)
#define _UNISTD_H_

#ifdef __cplusplus
extern "C" {
#endif

// 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")

extern int getopt(int argc, char *argv[], char *opstring);

extern char *optarg;

#ifdef __cplusplus
}
#endif

#endif

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.