diff options
author | Jeremy Allison <jra@samba.org> | 2000-01-29 00:23:40 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-01-29 00:23:40 +0000 |
commit | 21df01ff7d8f520aa5de2b737bd84ba2460d76b8 (patch) | |
tree | ff3d9b059293d5e9f7d2f9cfb7366415b54e7536 /source3/printing | |
parent | ebfef23a7d255c68785bff4682117e09957bc23e (diff) | |
download | samba-21df01ff7d8f520aa5de2b737bd84ba2460d76b8.tar.gz samba-21df01ff7d8f520aa5de2b737bd84ba2460d76b8.tar.bz2 samba-21df01ff7d8f520aa5de2b737bd84ba2460d76b8.zip |
Wrapped popen calls in HAVE_POPEN - needed if we are to add the
env patch.
Jeremy.
(This used to be commit 94c075faee88538e48d1898f1694500b8a5d4c8b)
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 } |