1 /*
2  Uptime Client v5.0 beta
3 
4  $Id: uplog.h,v 1.11 2003/05/26 20:57:23 carstenklapp Exp $
5 
6  Logs system uptime and statistics with Uptimes Project servers
7 
8  Copyright (C) 1999-2002 Carsten Klapp
9 
10  This program is free software; you can redistribute it and/or modify
11  it under the terms of the GNU General Public License as published by
12  the Free Software Foundation; either version 2 of the License, or
13  (at your option) any later version.
14 
15  This program is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  GNU General Public License for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with this program; if not, write to the Free Software
22  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23 
24  Carsten Klapp <carstenklapp@users.sourceforge.net>
25  */
26 
27 /**
28  * @filename    uplog.h
29  */
30 
31 #if !defined UPLOG_H
32 #define UPLOG_H 1
33 
34 /**
35  * Emulate <syslog.h>
36  */
37 #if !defined PLATFORM_WINNT && !defined PLATFORM_BEOS
38 #   if !defined SYSLOG_H
39 #      define SYSLOG_H
40 #      include <syslog.h>
41 #   endif /* !SYSLOG_H */
42 #else
43 #   include "compat/syslog.h"
44 #endif /* !PLATFORM_WINNT && !PLATFORM_BEOS*/
45 
46 /**
47  * for FreeBSD <syslog.h>
48  */
49 #if !defined __printflike
50 #   define __printflike(a, b)
51 #endif
52 
53 extern void uplog(int, const char *, ...);
54 
55 #endif /* !UPLOG_H */
56