about summary refs log tree commit diff
path: root/db2/compat.h
blob: 51008afcf07fbf183c68dc7ad58c4041f3a192c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* Compatibility gunk for the db library.  */

#include <sys/types.h>
#include <errno.h>

#include <sys/stat.h>
#ifdef _STATBUF_ST_BLKSIZE
# define HAVE_ST_BLKSIZE
#endif


#ifndef EFTYPE
# define EFTYPE EINVAL
#endif

/* Emulate Solaris llseek().  */
typedef loff_t offset_t;

extern int llseek (int fd, loff_t offset, int whence);