Print this page
Correctly merge "2991 Allow building without SMB printing support"
*** 25,42 ****
/*
* CUPS support for the SMB and SPOOLSS print services.
*/
- #ifndef HAVE_CUPS
- void smbd_load_printers(void) { return; }
- void smbd_cups_init(void) { return; }
- void smbd_cups_fini(void) { return; }
- void smbd_spool_start(void) { return; }
- void smbd_spool_stop(void) { return; }
- #else
-
#include <sys/types.h>
#include <sys/stat.h>
#include <strings.h>
#include <syslog.h>
#include <signal.h>
--- 25,34 ----
*** 46,55 ****
--- 38,48 ----
#include <errno.h>
#include <smbsrv/smb.h>
#include <smbsrv/smb_share.h>
#include "smbd.h"
+ #ifdef HAVE_CUPS
#include <cups/cups.h>
#define SMB_SPOOL_WAIT 2
#define SMBD_PJOBLEN 256
#define SMBD_PRINTER "Postscript"
*** 519,524 ****
}
}
(void) strlcpy(si->shr_cmnt, comment, SMB_SHARE_CMNT_MAX);
}
! #endif
--- 512,560 ----
}
}
(void) strlcpy(si->shr_cmnt, comment, SMB_SHARE_CMNT_MAX);
}
!
! #else /* HAVE_CUPS */
!
! /*
! * If not HAVE_CUPS, just provide a few "stubs".
! */
!
! int
! smbd_cups_init(void)
! {
! return (ENOENT);
! }
!
! void
! smbd_cups_fini(void)
! {
! }
!
! void
! smbd_load_printers(void)
! {
! }
!
! void
! smbd_spool_init(void)
! {
! }
!
! void
! smbd_spool_fini(void)
! {
! }
!
! void
! smbd_spool_start(void)
! {
! }
!
! void
! smbd_spool_stop(void)
! {
! }
!
! #endif /* HAVE_CUPS */