/*
- * "$Id: ipp.c,v 1.38.2.28 2003/07/30 17:04:38 mike Exp $"
+ * "$Id: ipp.c,v 1.38.2.29 2003/10/09 19:13:47 mike Exp $"
*
* IPP backend for the Common UNIX Printing System (CUPS).
*
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <cups/http-private.h>
#include <cups/cups.h>
#include <cups/language.h>
#include <cups/string.h>
#endif /* __APPLE__ */
-/*
- * Some OS's don't have hstrerror(), most notably Solaris...
- */
-
-#ifndef HAVE_HSTRERROR
-# define hstrerror cups_hstrerror
-
-const char * /* O - Error string */
-cups_hstrerror(int error) /* I - Error number */
-{
- static const char * const errors[] =
- {
- "OK",
- "Host not found.",
- "Try again.",
- "Unrecoverable lookup error.",
- "No data associated with name."
- };
-
-
- if (error < 0 || error > 4)
- return ("Unknown hostname lookup error.");
- else
- return (errors[error]);
-}
-#elif defined(_AIX)
-/*
- * AIX doesn't provide a prototype but does provide the function...
- */
-extern const char *hstrerror(int);
-#endif /* !HAVE_HSTRERROR */
-
-
/*
* Local functions...
*/
/*
- * End of "$Id: ipp.c,v 1.38.2.28 2003/07/30 17:04:38 mike Exp $".
+ * End of "$Id: ipp.c,v 1.38.2.29 2003/10/09 19:13:47 mike Exp $".
*/