xref: /OK3568_Linux_fs/buildroot/package/duma/0004-Fix-build-with-latest-glibc.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunFix build with latest glibc
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunFixes:
4*4882a593Smuzhiyun - http://autobuild.buildroot.net/results/c7de1a1d01edced2098a804ad87dcb67b5dc6832
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunSigned-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
7*4882a593Smuzhiyun
8*4882a593Smuzhiyundiff -durN duma_2_5_15.orig/print.c duma_2_5_15/print.c
9*4882a593Smuzhiyun--- duma_2_5_15.orig/print.c	2019-10-28 10:21:14.080149620 +0100
10*4882a593Smuzhiyun+++ duma_2_5_15/print.c	2019-10-28 10:22:01.256151561 +0100
11*4882a593Smuzhiyun@@ -326,9 +326,9 @@
12*4882a593Smuzhiyun   if(DUMA_OUTPUT_FILE != NULL)
13*4882a593Smuzhiyun   {
14*4882a593Smuzhiyun #if defined(WIN32) && !defined(__CYGWIN__)
15*4882a593Smuzhiyun-    fd = _open(DUMA_OUTPUT_FILE, _O_APPEND|_O_CREAT|_O_WRONLY);
16*4882a593Smuzhiyun+    fd = _open(DUMA_OUTPUT_FILE, _O_APPEND|_O_CREAT|_O_WRONLY, 0600);
17*4882a593Smuzhiyun #else
18*4882a593Smuzhiyun-    fd = open(DUMA_OUTPUT_FILE, O_APPEND|O_CREAT|O_WRONLY);
19*4882a593Smuzhiyun+    fd = open(DUMA_OUTPUT_FILE, O_APPEND|O_CREAT|O_WRONLY, 0600);
20*4882a593Smuzhiyun #endif
21*4882a593Smuzhiyun     if ( fd >= 0 )
22*4882a593Smuzhiyun     {
23