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:
John Barboza 2017-05-31 06:08:44 -04:00 committed by Santiago Gimeno
parent d4f3a42ec7
commit d5fc593b5f
No known key found for this signature in database
GPG Key ID: F28C3C8DA33C03BE
2 changed files with 13 additions and 4 deletions

View File

@ -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': {

View File

@ -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