summaryrefslogtreecommitdiffstats
path: root/source/printing/print_svid.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-01-29 00:23:40 +0000
committerJeremy Allison <jra@samba.org>2000-01-29 00:23:40 +0000
commit94c075faee88538e48d1898f1694500b8a5d4c8b (patch)
tree3552321340cfb1f9f5d376d37471af069d23051c /source/printing/print_svid.c
parent171bef4d95390c1a74591fb06327cc993360a764 (diff)
downloadsamba-94c075faee88538e48d1898f1694500b8a5d4c8b.tar.gz
samba-94c075faee88538e48d1898f1694500b8a5d4c8b.tar.xz
samba-94c075faee88538e48d1898f1694500b8a5d4c8b.zip
Wrapped popen calls in HAVE_POPEN - needed if we are to add the
env patch. Jeremy.
Diffstat (limited to 'source/printing/print_svid.c')
-rw-r--r--source/printing/print_svid.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/printing/print_svid.c b/source/printing/print_svid.c
index 85eaf8f95dd..ffc059f9f91 100644
--- a/source/printing/print_svid.c
+++ b/source/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
}