Commit 37671e43 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Include <sys/types.h>

Define SEEK_END and SEEK_SET if we cannot find them in any include files.
parent 86756dab
/*
* $Id: dbck-cache.c,v 0.13 1993/10/12 18:41:18 ceder Exp $
* $Id: dbck-cache.c,v 0.14 1993/10/13 00:18:09 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -32,21 +32,26 @@
* Also save time as a time_t instead of a struct tm.
*/
static char *rcsid = "$Id: dbck-cache.c,v 0.13 1993/10/12 18:41:18 ceder Exp $";
static char *rcsid = "$Id: dbck-cache.c,v 0.14 1993/10/13 00:18:09 ceder Exp $";
#include "rcs.h"
USE(rcsid);
#include <stdio.h>
#ifndef SEEK_END
#include <fcntl.h>
# include <fcntl.h>
#endif
#ifndef SEEK_END
#include <unistd.h>
# include <unistd.h>
#endif
#ifndef SEEK_END
# define SEEK_SET 0
# define SEEK_END 2
#endif
#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#endif
#include <time.h>
#include <sys/types.h>
#ifndef HAVE_DIFFTIME
# include "tmp-difftime.h"
#endif
......
/*
* $Id: simple-cache.c,v 0.34 1993/10/10 17:05:28 ceder Exp $
* $Id: simple-cache.c,v 0.35 1993/10/13 00:20:14 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -33,7 +33,7 @@
* New save algorithm by ceder.
*/
static char *rcsid = "$Id: simple-cache.c,v 0.34 1993/10/10 17:05:28 ceder Exp $";
static char *rcsid = "$Id: simple-cache.c,v 0.35 1993/10/13 00:20:14 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -45,8 +45,13 @@ USE(rcsid);
#ifndef SEEK_END
# include <unistd.h>
#endif
#ifndef SEEK_END
# define SEEK_SET 0
# define SEEK_END 2
#endif
#include <time.h>
#ifndef HAVE_DIFFTIME
# include <sys/types.h>
# include "tmp-difftime.h"
#endif
#include <setjmp.h>
......
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