#if defined(_WIN32)
# include <windows.h>
#endif
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
#ifdef USE_PPPORT_H
# include "ppport.h"
#endif
#ifndef HAVE_SYSLOG
#define HAVE_SYSLOG 1
#endif
#if defined(_WIN32) && !defined(__CYGWIN__)
#else
# include <syslog.h>
# endif
#endif
static SV *ident_svptr;
#include "const-c.inc"
int
LOG_FAC(p)
int p
CODE:
#ifdef LOG_FAC
#else
croak("Your vendor has not defined the Sys::Syslog macro LOG_FAC");
RETVAL = -1;
#endif
int
LOG_PRI(p)
int p
CODE:
#ifdef LOG_PRI
#else
croak("Your vendor has not defined the Sys::Syslog macro LOG_PRI");
RETVAL = -1;
#endif
int
int fac
int pri
CODE:
#ifdef LOG_MAKEPRI
#else
croak("Your vendor has not defined the Sys::Syslog macro LOG_MAKEPRI");
RETVAL = -1;
#endif
int
int pri
CODE:
#ifdef LOG_MASK
#else
croak("Your vendor has not defined the Sys::Syslog macro LOG_MASK");
RETVAL = -1;
#endif
int
int pri
CODE:
#ifdef LOG_UPTO
#else
croak("Your vendor has not defined the Sys::Syslog macro LOG_UPTO");
RETVAL = -1;
#endif
#ifdef HAVE_SYSLOG
void
SV* ident
int option
int facility
char* ident_pv;
CODE:
ident_svptr = newSVsv(ident);
void
int priority
const char * message
CODE:
int
int mask
CODE:
void
CODE:
closelog();
if (SvREFCNT(ident_svptr))
#else /* HAVE_SYSLOG */
void
SV* ident
int option
int facility
CODE:
void
int priority
const char * message
CODE:
int
int mask
CODE:
void
CODE:
#endif /* HAVE_SYSLOG */