--- libaitio/inc/global.h 2011/04/19 22:32:16 1.5.2.2 +++ libaitio/inc/global.h 2016/08/18 09:06:31 1.19 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: global.h,v 1.5.2.2 2011/04/19 22:32:16 misho Exp $ +* $Id: global.h,v 1.19 2016/08/18 09:06:31 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 +Copyright 2004 - 2016 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -27,11 +27,11 @@ are met: must display the following acknowledgement: This product includes software developed by Michael Pounov ELWIX - Embedded LightWeight unIX and its contributors. -4. Neither the name of the University nor the names of its contributors +4. Neither the name of AITNET nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. -THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +THIS SOFTWARE IS PROVIDED BY AITNET AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE @@ -47,38 +47,70 @@ SUCH DAMAGE. #define __GLOBAL_H -#define COMPAT_43TTY - #include "config.h" +#ifdef __linux__ +#define _GNU_SOURCE +#endif + #include #include #include #include #include +#include #include -#include #include +#include #include -#include -#include +#include #include +#include +#include +#include +#include +#include #include #include +#ifndef __linux__ +#include #include +#include +#else +#include +#include +#include +#include +#include +#endif #include +#include #include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#ifndef __linux__ +#include +#include +#ifdef __FreeBSD__ +#include +#else +#include +#endif +#endif +#include #ifdef AIO_OPS #include #endif +#include #include "aitio.h" +#include "aitsess.h" #include "defs.h"