# tests. This should be enabled to get the fork() emulation. Do not
# enable unless you know what you're doing!
#
-USE_ITHREADS *= define
+#USE_ITHREADS *= define
#
# uncomment to enable the implicit "host" layer for all system calls
# made by perl. This is needed and auto-enabled by USE_OBJECT above.
#
-USE_IMP_SYS *= define
+#USE_IMP_SYS *= define
#
# uncomment exactly one of the following
# this target added for Win95 port but used to keep the WinNT port able to
# use this file
__not_needed:
+ $(NOOP)
$(GLOBEXE) : perlglob$(o)
.IF "$(CCTYPE)" == "BORLAND"
int fileno = win32_dup(win32_fileno((FILE*)pf));
/* open the file in the same mode */
+#ifdef __BORLANDC__
+ if(((FILE*)pf)->flags & _F_READ) {
+ mode[0] = 'r';
+ mode[1] = 0;
+ }
+ else if(((FILE*)pf)->flags & _F_WRIT) {
+ mode[0] = 'a';
+ mode[1] = 0;
+ }
+ else if(((FILE*)pf)->flags & _F_RDWR) {
+ mode[0] = 'r';
+ mode[1] = '+';
+ mode[2] = 0;
+ }
+#else
if(((FILE*)pf)->_flag & _IOREAD) {
mode[0] = 'r';
mode[1] = 0;
mode[1] = '+';
mode[2] = 0;
}
+#endif
/* it appears that the binmode is attached to the
* file descriptor so binmode files will be handled
StreamId.dwStreamId = BACKUP_LINK;
StreamId.dwStreamAttributes = 0;
StreamId.dwStreamNameSize = 0;
+#ifdef __BORLANDC__
+ StreamId.Size.u.HighPart = 0;
+ StreamId.Size.u.LowPart = dwLen;
+#else
StreamId.Size.HighPart = 0;
StreamId.Size.LowPart = dwLen;
+#endif
bSuccess = pfnBackupWrite(handle, (LPBYTE)&StreamId, dwSize, &dwWritten,
FALSE, FALSE, &lpContext);
#define _access access
#define _chdir chdir
+#define _getpid getpid
#include <sys/types.h>
#ifndef DllMain