Changeset 980


Ignore:
Timestamp:
Sep 23, 2016, 5:50:54 PM (9 years ago)
Author:
Silvan Scherrer
Message:

samba server: adjust some mmap stuff and fix a Makefile issue

Location:
trunk/server
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/lib/replace/test/shared_mmap.c

    r414 r980  
    2020        int *buf;
    2121        int i;
    22         int fd = open(DATA,O_RDWR|O_CREAT|O_TRUNC,0666);
     22        int fd = open(DATA,O_RDWR|O_CREAT|O_TRUNC|O_BINARY,0666);
    2323        int count=7;
    2424
     
    3232
    3333        if (fork() == 0) {
    34                 fd = open(DATA,O_RDWR);
     34                fd = open(DATA,O_RDWR|O_BINARY);
    3535                if (fd == -1) exit(1);
    3636
     
    4848        }
    4949
    50         fd = open(DATA,O_RDWR);
     50        fd = open(DATA,O_RDWR|O_BINARY);
    5151        if (fd == -1) exit(1);
    5252
  • trunk/server/lib/util/util_file.c

    r901 r980  
    227227#ifdef HAVE_MMAP
    228228        int fd;
     229#ifdef __OS2__
     230        fd = open(fname, O_RDONLY | O_BINARY, 0);
     231#else
    229232        fd = open(fname, O_RDONLY, 0);
     233#endif
    230234        if (fd == -1) {
    231235                DEBUG(2,("Failed to load %s - %s\n", fname, strerror(errno)));
  • trunk/server/source3/Makefile.in

    r920 r980  
    21442144LIBTEVENT_STATIC_TARGET=@LIBTEVENT_STATIC_TARGET@
    21452145LIBTEVENT_SYMS=$(srcdir)/exports/libtevent.@SYMSEXT@
    2146 LIBTEVENT_HEADERS=$(srcdir)/@teventdir@/tevent.h $(srcdir)/@teventdir@/tevent_internal.h
     2146LIBTEVENT_HEADERS=@teventdir@/tevent.h @teventdir@/tevent_internal.h
    21472147
    21482148$(LIBTEVENT_SYMS): $(LIBTEVENT_HEADERS)
Note: See TracChangeset for help on using the changeset viewer.