hacks to make it compile everywhere

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@260 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1996-02-11 16:07:55 +00:00
parent 193d401b87
commit 7d69e8a197
3 changed files with 12 additions and 4 deletions

View File

@@ -9,11 +9,7 @@
#define AFSCALL_SETPAG 21
#ifndef _VICEIOCTL
#if defined(__STDC__)
#define _VICEIOCTL(id) ((unsigned int ) _IOW('V', id, struct ViceIoctl))
#else
#define _VICEIOCTL(id) ((unsigned int ) _IOW(V, id, struct ViceIoctl))
#endif
#endif /* _VICEIOCTL */
#define VIOCSETTOK _VICEIOCTL(3)

View File

@@ -35,7 +35,16 @@
#include <config.h>
#endif
#include <sys/types.h>
#if TIME_WITH_SYS_TIME
#include <sys/time.h>
#include <time.h>
#else
#if HAVE_SYS_TIME_H
#include <sys/time.h>
#else
#include <time.h>
#endif /* !HAVE_SYS_TIME_H */
#endif /* !TIME_WITH_SYS_TIME */
#define TM_YEAR_BASE 1900 /* from <tzfile.h> */
#include <string.h>