/** \file qnx_port.h 
   Definitions used for QNX-specific porting
*/
/****************************************************************************/
/* Copyright (c) 2008 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : qnx_port.h                                                    */
/* Author   : K Headley                                                     */
/* Project  : Benthic Imaging AUV                                           */
/* Created  : 04/01/2008                                                    */
/****************************************************************************/
/* Modification History:                                                    */
/*  $Id: qnx_port.h,v 1.2 2008/12/11 20:10:43 headley Exp $   */
/*  $Name: FastSim $ */
/****************************************************************************/
#include <sys/socket.h>

#ifndef SHUT_RDWR
/** parameters for socket shutdown */
enum
{
	SHUT_RD = 0, /*No more receptions */
	SHUT_WR,	/* No more transmissions */
	SHUT_RDWR	/*No more receptions or transmissions */
};
/** shutdown read */
#define SHUT_RD SHUT_RD
/** shutdown write */
#define SHUT_WR SHUT_WR
/** shutdown read/write */
#define SHUT_RDWR SHUT_RDWR
#endif

#ifdef _QNX
#include <mem.h>
typedef int SOCKLEN;
#else
#include <memory.h>
typedef socklen_t SOCKLEN;
#endif
