$OpenBSD: patch-common_utils_c,v 1.3 2014/06/17 08:51:18 ajacoutot Exp $

implicit declaration of function 'mkstemp'

--- common/utils.c.orig	Tue Jun  3 08:33:06 2014
+++ common/utils.c	Tue Jun 17 09:38:56 2014
@@ -1,5 +1,6 @@
 #include "utils.h"
 #include "string.h"
+#include <stdlib.h>
 #include <dlfcn.h>
 #include <sys/stat.h>
 #include <errno.h>
@@ -253,7 +254,7 @@ int getHPLogLevel()
     char    str[258];
     char    *p;
     int iLogLevel = 0;
-    fp = fopen ("/etc/cups/cupsd.conf", "r");
+    fp = fopen ("${SYSCONFDIR}/cups/cupsd.conf", "r");
     if (fp == NULL)
         return 0;
     while (!feof (fp))
