mirror of
https://git.freebsd.org/ports.git
synced 2025-06-10 23:30:29 -04:00
that the maintainer wishes to use to create a shared library for use with other applications such as CDE. It is based on ksh93v (2014-12-24) and is incompatible with the direction that att/ast is taking the official ksh93 implementation. PR: 237332 Requested by: maintainer (saper@saper.info)
34 lines
884 B
C
34 lines
884 B
C
--- src/lib/libast/sfio/sfsetbuf.c.orig 2016-02-28 17:09:23 UTC
|
|
+++ src/lib/libast/sfio/sfsetbuf.c
|
|
@@ -302,7 +302,6 @@ size_t size; /* buffer size, -1 for defa
|
|
okmmap = (buf || (f->flags&SF_STRING) || (f->flags&SF_RDWR) == SF_RDWR) ? 0 : 1;
|
|
|
|
/* save old buffer info */
|
|
-#if _mmap_worthy
|
|
if(f->bits&SF_MMAP)
|
|
{ if(f->data)
|
|
{ if(f->getr && (f->mode&SF_GETR) && f->next)
|
|
@@ -311,7 +310,6 @@ size_t size; /* buffer size, -1 for defa
|
|
f->data = NIL(uchar*);
|
|
}
|
|
} else
|
|
-#endif
|
|
if(f->data == f->tiny)
|
|
{ f->data = NIL(uchar*);
|
|
f->size = 0;
|
|
@@ -438,7 +436,6 @@ size_t size; /* buffer size, -1 for defa
|
|
}
|
|
}
|
|
|
|
-#if _mmap_worthy
|
|
if(okmmap && size && (f->mode&SF_READ) && f->extent >= 0 )
|
|
{ /* see if we can try memory mapping */
|
|
if(!disc)
|
|
@@ -457,7 +454,6 @@ size_t size; /* buffer size, -1 for defa
|
|
}
|
|
}
|
|
}
|
|
-#endif
|
|
|
|
/* get buffer space */
|
|
setbuf:
|