DB2 version 8.1 fixpak 4
Redhat 8 Linux
I'm trying to compile a userexit program (db2uext2.c) and I get the following errors:
db2uext2.c: In function `ArchiveFile':
db2uext2.c:732: `offset_t' undeclared (first use in this function)
db2uext2.c:732: (Each undeclared identifier is reported only once
db2uext2.c:732: for each function it appears in.)
db2uext2.c:732: parse error before "offsetll"
db2uext2.c:804: `offsetll' undeclared (first use in this function)
db2uext2.c:804: parse error before "startingPage"
Line 732:
offset_t offsetll;
Line 804:
offsetll = (offset_t)startingPage * 4096;
Declare for offset_t in the program:
/* HP does not define llseek and offset_t */
#ifdef _INCLUDE_POSIX_SOURCE
# define llseek lseek
typedef unsigned long offset_t;
#endif
Do I comment this out? Delete it altogether?