#endif
#include <errno.h>
#include <assert.h>
-#include <syscall.h>
+#include <sys/syscall.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/stat.h>
assert(*offset >= 0);
off = *offset;
-#if _LARGEFILE64_SOURCE && defined(SYSIO_SYS__llseek)
+#if defined(_LARGEFILE64_SOURCE) && defined(SYSIO_SYS__llseek)
{
int err;
err =
int err;
ssize_t cc;
#if defined(SYSIO_SYS_getdirentries)
- _SYSIO_OFF_T waste;
+ _SYSIO_OFF_T waste=*posp;
#endif
if (*posp < 0)