added proper includes

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4472 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2002-02-02 06:34:31 +00:00
parent bb4ab0c82b
commit b7e384634b
1 changed files with 12 additions and 7 deletions

View File

@ -1,3 +1,6 @@
#include <string.h>
#include <stdio.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
@ -33,7 +36,7 @@ int main(int argc, char *argv[])
printf("ret: %s\n", strerror(errno));
mem.ret = (int)mmap(NULL, (size_t)mem.size, PROT_READ, MAP_SHARED, fd, (off_t)0);
printf("allocated to %p\n", mem.ret);
printf("allocated to %x\n", mem.ret);
if (argc > 1)
if (mem.ret != 0)
@ -52,4 +55,6 @@ int main(int argc, char *argv[])
ioctl(fd, DHAHELPER_MEMORY, &mem);
}
return(0);
}