From: Michael R Sweet Date: Thu, 18 Oct 2018 13:38:49 +0000 (-0400) Subject: Don't install internal headers. X-Git-Tag: v2.3b6~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4b526e71efa7d70778a1e8b90fea35326cb85ab;p=thirdparty%2Fcups.git Don't install internal headers. --- diff --git a/cups/Makefile b/cups/Makefile index 9d3b422e1b..ea214a45b3 100644 --- a/cups/Makefile +++ b/cups/Makefile @@ -128,12 +128,10 @@ HEADERS = \ HEADERSPRIV = \ array-private.h \ cups-private.h \ - debug-private.h \ file-private.h \ http-private.h \ ipp-private.h \ language-private.h \ - md5-private.h \ ppd-private.h \ pwg-private.h \ raster-private.h \ diff --git a/cups/debug-private.h b/cups/debug-private.h index 4cabe0d8c0..8d58e224bd 100644 --- a/cups/debug-private.h +++ b/cups/debug-private.h @@ -77,11 +77,14 @@ extern "C" { * Prototypes... */ +# ifdef DEBUG extern int _cups_debug_fd _CUPS_PRIVATE; extern int _cups_debug_level _CUPS_PRIVATE; extern void _cups_debug_printf(const char *format, ...) _CUPS_FORMAT(1,2) _CUPS_PRIVATE; extern void _cups_debug_puts(const char *s) _CUPS_PRIVATE; extern void _cups_debug_set(const char *logfile, const char *level, const char *filter, int force) _CUPS_PRIVATE; +# endif /* DEBUG */ + # ifdef _WIN32 extern int _cups_gettimeofday(struct timeval *tv, void *tz) _CUPS_PRIVATE; # define gettimeofday(a,b) _cups_gettimeofday(a, b) diff --git a/cups/debug.c b/cups/debug.c index b04432b5e3..372c3a3917 100644 --- a/cups/debug.c +++ b/cups/debug.c @@ -35,6 +35,7 @@ _cups_gettimeofday(struct timeval *tv, /* I - Timeval struct */ #include +#ifdef DEBUG /* * Globals... */ @@ -45,7 +46,6 @@ int _cups_debug_level = 1; /* Log level (0 to 9) */ -#ifdef DEBUG /* * Local globals... */