// @configure_input@
// $Header$
//
// Copyright (C) 2000 - 2003, 2008 by
//
// Carlo Wood, Run on IRC <carlo@alinoe.com>
// RSA-1024 0x624ACAD5 1997-01-26                    Sign & Encrypt
// Fingerprint16 = 32 EC A7 B6 AC DB 65 A6  F6 F6 55 DD 1C DC FF 61
//
// This file may be distributed under the terms of the Q Public License
// version 1.0 as appearing in the file LICENSE.QPL included in the
// packaging of this file.
//

#ifndef SYS_H
#define SYS_H

#include "../config.h"

//
// Use all GNU extensions.
//
#if !defined(_GNU_SOURCE) && defined(CW_NEED__GNU_SOURCE)
#define _GNU_SOURCE
#endif

//
// Some OS use _THREAD_SAFE instead of _REENTRANT
//
#ifdef _REENTRANT
#define _THREAD_SAFE
#endif

//
// typedefs
//
// getgroups_t          : The type of the array argument to getgroups
//
#include <sys/types.h>		// Needed for getgroups_t.
@CW_SYS_TYPEDEFS@

// Bug work arounds
 
// Including certain header files fail with a warning.  For example:
// /usr/include/bits/resource.h:109: warning: `RLIM_INFINITY' redefined
// Word around (if any):
@CW_SYS_REDEFINES_FIX@

#include <libcwd/sys.h>

#endif // SYS_H
