patch-prnt_hpijs_hpcupsfax_cpp 660 B

123456789101112131415161718192021222324
  1. $OpenBSD: patch-prnt_hpijs_hpcupsfax_cpp,v 1.6 2016/09/19 09:17:45 ajacoutot Exp $
  2. Fix build with cups>=2.2.0
  3. --- prnt/hpijs/hpcupsfax.cpp.orig Fri Aug 26 12:03:15 2016
  4. +++ prnt/hpijs/hpcupsfax.cpp Sun Sep 18 19:30:46 2016
  5. @@ -43,6 +43,7 @@
  6. #include <arpa/inet.h>
  7. #include <math.h>
  8. #include <cups/cups.h>
  9. +#include <cups/ppd.h>
  10. #include <cups/raster.h>
  11. #include <string>
  12. #ifdef FALSE
  13. @@ -94,7 +95,7 @@ static void GetLogLevel ()
  14. FILE *fp;
  15. char str[258];
  16. char *p;
  17. - fp = fopen ("/etc/cups/cupsd.conf", "r");
  18. + fp = fopen ("${SYSCONFDIR}/cups/cupsd.conf", "r");
  19. if (fp == NULL)
  20. return;
  21. while (!feof (fp))