]> code.citadel.org Git - citadel.git/blobdiff - citadel/support.c
Removed the HAVE_STRERROR directive and our replacement strerror() function for ...
[citadel.git] / citadel / support.c
index b650c7ee8c2cfcbb5bbac65b999e08dee7fbcd88..56941c36fb23abac8f365b3d20c4dc44ffd21588 100644 (file)
@@ -1,21 +1,14 @@
 /*
- * $Id$
- *
  * Server-side utility functions
- *
  */
 
 #include "sysdep.h"
-#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
-#include <ctype.h>
 #include <stdio.h>
 #include <string.h>
+#include <sys/stat.h>
 #include <libcitadel.h>
+
 #include "citadel.h"
-#include "server.h"
 #include "support.h"
 
 /*
@@ -113,16 +106,3 @@ void mesg_locate(char *targ, size_t n, const char *searchfor,
 }
 
 
-#ifndef HAVE_STRERROR
-/*
- * replacement strerror() for systems that don't have it
- */
-char *strerror(int e)
-{
-       static char buf[32];
-
-       snprintf(buf,sizeof buf,"errno = %d",e);
-       return(buf);
-       }
-#endif
-