Commit 95e64b4b authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Check HAVE_STDLIB_H, HAVE_STRING_H and HAVE_LOCALE_H.

parent 952204f2
/* /*
* $Id: ramkomd.c,v 0.36 1993/10/10 22:30:47 ceder Exp $ * $Id: ramkomd.c,v 0.37 1993/10/12 21:05:46 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association. * Copyright (C) 1991 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -31,16 +31,22 @@ ...@@ -31,16 +31,22 @@
* It has grown! /ceder * It has grown! /ceder
*/ */
static char *rcsid = "$Id: ramkomd.c,v 0.36 1993/10/10 22:30:47 ceder Exp $"; static char *rcsid = "$Id: ramkomd.c,v 0.37 1993/10/12 21:05:46 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
#include <locale.h> #ifdef HAVE_LOCALE_H
# include <locale.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <signal.h> #include <signal.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdlib.h> #ifdef HAVE_STDLIB_H
#include <string.h> # include <stdlib.h>
#endif
#ifdef HAVE_STRING_H
# include <string.h>
#endif
#include <sys/wait.h> #include <sys/wait.h>
#include <time.h> #include <time.h>
#include <unistd.h> #include <unistd.h>
...@@ -280,7 +286,7 @@ main (int argc, ...@@ -280,7 +286,7 @@ main (int argc,
#include "version.incl" #include "version.incl"
, getpid()); , getpid());
#ifdef HAVE_LOCALE #ifdef HAVE_LOCALE_H
if (setlocale(LC_CTYPE, "iso_8859_1") == NULL) if (setlocale(LC_CTYPE, "iso_8859_1") == NULL)
{ {
perror("setlocale"); perror("setlocale");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment