/* config_unix.h.  Generated automatically by configure.  */
/*=========================================================================*\
  Copyright (c) 2000-2001 Computer & Communications Research Laboratories,
                          Industrial Technology Research Institute
  
  RTP - Configuration specialized for Unix
  
  Author: Jiun-Yao Huang <jyhuang@wizs.org>
  Revision: $Id: config_unix.h,v 1.1 2001/06/19 11:05:00 hcc Exp $
\*=========================================================================*/
#ifndef	__CONFIG_UNIX_H__
#define	__CONFIG_UNIX_H__

#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/ioctl.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <errno.h>
/* #include <pthread.h> */

/* Words are stored with most significant byte first. */
#define WORDS_BIGENDIAN 1

/* Socket descriptor type */
#define SOCKET int

#define INVALID_SOCKET	-1
#define	SOCKET_ERROR	-1

#define	SOCKET_ERRNO	(errno)
#define closesocket(sd)	close(sd)
#define	ioctlsocket(sd, cmd, val)	ioctl(sd, cmd, val)

#define	THREAD_RETURN_TYPE	void *

#endif /* #ifndef __CONFIG_UNIX_H__ */
