zos: avoid compiler warnings
Some of these compiler flags are not supported. So don't use them. PR-URL: https://github.com/libuv/libuv/pull/1373 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
d4f3a42ec7
commit
d5fc593b5f
12
common.gypi
12
common.gypi
@ -49,9 +49,6 @@
|
||||
'cflags': [
|
||||
'-O3',
|
||||
'-fstrict-aliasing',
|
||||
'-fomit-frame-pointer',
|
||||
'-fdata-sections',
|
||||
'-ffunction-sections',
|
||||
],
|
||||
'msvs_settings': {
|
||||
'VCCLCompilerTool': {
|
||||
@ -82,6 +79,15 @@
|
||||
'LinkIncremental': 1, # disable incremental linking
|
||||
},
|
||||
},
|
||||
'conditions': [
|
||||
['OS != "os390"', {
|
||||
'cflags': [
|
||||
'-fomit-frame-pointer',
|
||||
'-fdata-sections',
|
||||
'-ffunction-sections',
|
||||
],
|
||||
}],
|
||||
]
|
||||
}
|
||||
},
|
||||
'msvs_settings': {
|
||||
|
||||
@ -28,7 +28,6 @@
|
||||
#include <errno.h>
|
||||
#include <assert.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/param.h> /* MAXHOSTNAMELEN on Linux and the BSDs */
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
@ -82,6 +81,10 @@
|
||||
#include <sys/ioctl.h>
|
||||
#endif
|
||||
|
||||
#if !defined(__MVS__)
|
||||
#include <sys/param.h> /* MAXHOSTNAMELEN on Linux and the BSDs */
|
||||
#endif
|
||||
|
||||
/* Fallback for the maximum hostname length */
|
||||
#ifndef MAXHOSTNAMELEN
|
||||
# define MAXHOSTNAMELEN 256
|
||||
|
||||
Loading…
Reference in New Issue
Block a user