File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ char usage[]=
188
188
189
189
int env_csdr_fixed_bufsize = 1024 ;
190
190
int env_csdr_fixed_big_bufsize = 1024 * 16 ;
191
- #if __FreeBSD__
191
+ #if ! __linux__
192
192
int env_csdr_dynamic_bufsize_on = 1 ;
193
193
#else
194
194
int env_csdr_dynamic_bufsize_on = 0 ;
@@ -373,8 +373,7 @@ int initialize_buffers()
373
373
374
374
if (the_bufsize <=4096 ) //this is hacky, should be done correctly
375
375
{
376
- #if __FreeBSD__
377
- #else
376
+ #if __linux__
378
377
fcntl (STDIN_FILENO , F_SETPIPE_SZ , 4096 );
379
378
fcntl (STDOUT_FILENO , F_SETPIPE_SZ , 4096 );
380
379
#endif
@@ -387,8 +386,7 @@ int sendbufsize(int size)
387
386
{
388
387
if (size <=4096 )
389
388
{
390
- #if __FreeBSD__
391
- #else
389
+ #if __linux__
392
390
fcntl (STDOUT_FILENO , F_SETPIPE_SZ , 4096 );
393
391
#endif
394
392
}
@@ -436,8 +434,7 @@ int main(int argc, char *argv[])
436
434
if (argc <=1 ) return badsyntax (0 );
437
435
if (!strcmp (argv [1 ],"--help" )) return badsyntax (0 );
438
436
439
- #if __FreeBSD__
440
- #else
437
+ #if __linux__
441
438
fcntl (STDIN_FILENO , F_SETPIPE_SZ , 65536 * 32 );
442
439
fcntl (STDOUT_FILENO , F_SETPIPE_SZ , 65536 * 32 );
443
440
#endif
You can’t perform that action at this time.
0 commit comments