diff options
author | goodale <goodale@61ea717e-8e0c-4c3c-b38e-e9c67f54f1f1> | 2000-09-22 15:02:38 +0000 |
---|---|---|
committer | goodale <goodale@61ea717e-8e0c-4c3c-b38e-e9c67f54f1f1> | 2000-09-22 15:02:38 +0000 |
commit | 15b0025e813045765ee012321a6cf5cd10828fd0 (patch) | |
tree | afea7899dab84c2fa9c890648e14b8f1906afe13 | |
parent | 81bd964bd7892f578e8658f6f6fbd455b49b341e (diff) |
Changes necessary for jpegs under NT.
Tom
git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPDExtra/trunk@11 61ea717e-8e0c-4c3c-b38e-e9c67f54f1f1
-rw-r--r-- | src/IO.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -71,6 +71,10 @@ static int SendFilePage(cGH *cctkGH, httpRequest *request, void *data); static struct httpuFileList *filelist = NULL; static struct httpuMimeType *mimetypes = NULL; +#ifndef O_BINARY +#define O_BINARY 0 +#endif + /******************************************************************** ********************* External Routines ********************** ********************************************************************/ @@ -288,7 +292,7 @@ static int SendFilePage(cGH *cctkGH, httpRequest *request, void *data) { if(!strcmp(list->linkname, request->residual)) { - if((filedes = open(list->filename, O_RDONLY)) >= 0) + if((filedes = open(list->filename, O_RDONLY | O_BINARY)) >= 0) { strcpy(message,"HTTP/1.0 200 OK\r\n"); |