Tizen 2.0 Release
[external/lcms.git] / debian / patches / lcms2-ocloexec.patch
1 Index: src/cmscgats.c
2 ===================================================================
3 --- src/cmscgats.c.orig
4 +++ src/cmscgats.c
5 @@ -836,7 +836,7 @@ void InSymbol(cmsIT8* it8)
6                      return;
7                  }
8  
9 -                FileNest->Stream = fopen(FileNest->FileName, "rt");
10 +                FileNest->Stream = fopen(FileNest->FileName, "rte");
11                  if (FileNest->Stream == NULL) {
12  
13                          SynError(it8, "File %s not found", FileNest->FileName);
14 @@ -1670,7 +1670,7 @@ cmsBool CMSEXPORT cmsIT8SaveToFile(cmsHA
15  
16      memset(&sd, 0, sizeof(sd));
17  
18 -    sd.stream = fopen(cFileName, "wt");
19 +    sd.stream = fopen(cFileName, "wte");
20      if (!sd.stream) return FALSE;
21      
22      for (i=0; i < it8 ->TablesCount; i++) {
23 @@ -2178,7 +2178,7 @@ cmsBool IsMyFile(const char* FileName)
24     cmsUInt32Number Size;
25     cmsUInt8Number Ptr[133];
26  
27 -   fp = fopen(FileName, "rt");
28 +   fp = fopen(FileName, "rte");
29     if (!fp) {
30         cmsSignalError(0, cmsERROR_FILE, "File '%s' not found", FileName);
31         return FALSE;
32 @@ -2256,7 +2256,7 @@ cmsHANDLE  CMSEXPORT cmsIT8LoadFromFile(
33       if (!hIT8) return NULL;
34  
35  
36 -     it8 ->FileStack[0]->Stream = fopen(cFileName, "rt");
37 +     it8 ->FileStack[0]->Stream = fopen(cFileName, "rte");
38  
39       if (!it8 ->FileStack[0]->Stream) {         
40           cmsIT8Free(hIT8);