/usr/include/plib/slPortability.h is in libplib-dev 1.8.5-8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | /*
PLIB - A Suite of Portable Game Libraries
Copyright (C) 1998,2002 Steve Baker
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
For further information visit http://plib.sourceforge.net
$Id: slPortability.h 2013 2005-01-16 06:03:31Z sjbaker $
*/
#ifndef __SLPORTABILITY_H__
#define __SLPORTABILITY_H__ 1
/* ------------------------------------------------------------- */
/* OS specific includes and defines ... */
/* ------------------------------------------------------------- */
#include "ul.h"
#include <stdio.h>
#include <stdlib.h>
#ifdef UL_MACINTOSH
#include <Sound.h>
#include <Timer.h>
#ifdef __MWERKS__
#include <unix.h>
#endif
#endif
#ifdef UL_MAC_OSX
#include <Carbon/Carbon.h>
#endif
#include <fcntl.h>
#include <sys/stat.h>
#include <string.h>
#include <limits.h>
#include <math.h>
#if (defined(UL_LINUX) || defined(UL_BSD) || defined(UL_GNU)) && !defined(__NetBSD__)
#define SL_USING_OSS_AUDIO 1
#endif
#ifdef SL_USING_OSS_AUDIO
# if defined(UL_LINUX)
# include <linux/soundcard.h>
# include <sys/ioctl.h>
# elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(UL_GNU)
# include <sys/soundcard.h>
# else
/*
Tom thinks this file may be <sys/soundcard.h> under some
unixen - but that isn't where the OSS manuals say it
should be.
If you ever find out the truth, please email me:
Steve Baker <sjbaker1@airmail.net>
*/
# include <soundcard.h>
# endif
#endif
#ifdef UL_BSD
#if !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__)
# include <sys/audioio.h>
#endif
#endif
/* Tom */
#ifdef UL_IRIX
# include <audio.h>
#endif
#ifdef UL_SOLARIS
# include <sys/audioio.h>
# include <sys/stropts.h>
#endif
#endif
|