aboutsummaryrefslogtreecommitdiffstats
path: root/plpprint
diff options
context:
space:
mode:
authorFritz Elfert <felfert@to.com>2002-07-14 19:08:08 +0000
committerFritz Elfert <felfert@to.com>2002-07-14 19:08:08 +0000
commit28e01b8c6a137a9e98d95689be3d3d72be18d9d7 (patch)
treef011d3dba1f05cc8c08b582ba4b9568d3dfc94af /plpprint
parent838b2558b635d0ec27785e1280904fdea61bc935 (diff)
downloadplptools-28e01b8c6a137a9e98d95689be3d3d72be18d9d7.tar.gz
plptools-28e01b8c6a137a9e98d95689be3d3d72be18d9d7.tar.bz2
plptools-28e01b8c6a137a9e98d95689be3d3d72be18d9d7.zip
- Non-KDE stuff now builds correctly with gcc3
Diffstat (limited to 'plpprint')
-rw-r--r--plpprint/plpprintd.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/plpprint/plpprintd.cc b/plpprint/plpprintd.cc
index e324a7e..6708d44 100644
--- a/plpprint/plpprintd.cc
+++ b/plpprint/plpprintd.cc
@@ -27,6 +27,7 @@
#include <stream.h>
#include <string.h>
#include <stdlib.h>
+#include <stdarg.h>
#include <stdio.h>
#include <syslog.h>
#include <unistd.h>
@@ -38,7 +39,9 @@
#include <wprt.h>
#include <psibitmap.h>
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE
+#endif
#include <getopt.h>
#define TEMPLATE "plpprint_XXXXXX"
@@ -46,6 +49,8 @@
#define SPOOLDIR "/var/spool/plpprint"
#define PSDICT "/prolog.ps"
+using namespace std;
+
char *spooldir = SPOOLDIR;
char *printcmd = PRINTCMD;
wprt *wPrt;