diff options
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/print_svid.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/printing/print_svid.c b/source3/printing/print_svid.c index 85eaf8f95d..ffc059f9f9 100644 --- a/source3/printing/print_svid.c +++ b/source3/printing/print_svid.c @@ -47,6 +47,7 @@ static printer_t *printers = NULL; static void populate_printers(void) { +#ifdef HAVE_POPEN FILE *fp; if ((fp = popen("/usr/bin/lpstat -v", "r")) != NULL) { @@ -91,6 +92,9 @@ static void populate_printers(void) } else { DEBUG(0,( "Unable to run lpstat!\n")); } +#else + DEBUG(0,( "No popen() defined: Unable to run lpstat!\n")); +#endif } |