Commit 0db44a1f 0db44a1f8c8dee91d34fd3a16d82ba05446cefc3 by Alain Magloire

mapfile_stream.c

noop everything whith #ifdef _POSIX_MAPPED_FILE
1 parent 61e324d1
......@@ -25,10 +25,13 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/mman.h>
#include <io0.h>
#ifdef _POSIX_MAPPED_FILES
#include <sys/mman.h>
struct _mapfile_stream
{
int fd;
......@@ -257,9 +260,14 @@ _mapfile_open (stream_t stream, const char *filename, int port, int flags)
return 0;
}
#endif /* _POSIX_MAPPED_FILES */
int
mapfile_stream_create (stream_t *stream)
{
#ifndef _POSIX_MAPPED_FILES
return ENOTSUP;
#else
struct _mapfile_stream *fs;
int ret;
......@@ -288,4 +296,5 @@ mapfile_stream_create (stream_t *stream)
stream_set_flush (*stream, _mapfile_flush, fs);
stream_set_destroy (*stream, _mapfile_destroy, fs);
return 0;
#endif /* _POSIX_MAPPED_FILES */
}
......