Fix more header-related warnings.
This fixes all current default warnings with GCC7 on Linux. That does not mean the code is anywhere close to clean.
This commit is contained in:
parent
90d5708d84
commit
614dcfffd2
10 changed files with 53 additions and 15 deletions
|
|
@ -29,6 +29,10 @@
|
|||
SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32)
|
||||
#include <Windows.h>
|
||||
#include <Lmcons.h>
|
||||
|
|
@ -40,6 +44,7 @@
|
|||
#include <process.h>
|
||||
#else
|
||||
#include <pwd.h>
|
||||
#include <sys/wait.h>
|
||||
#include <sys/utsname.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
|
@ -73,6 +78,10 @@
|
|||
#include <signal.h>
|
||||
#include <time.h>
|
||||
|
||||
#ifdef HAVE_ARPA_INET_H
|
||||
#include <arpa/inet.h>
|
||||
#endif
|
||||
|
||||
#define MOD_MOVE(c) (toupper(c) )
|
||||
|
||||
void
|
||||
|
|
@ -533,7 +542,7 @@ int md_endian = 0x01020304;
|
|||
unsigned long int
|
||||
md_ntohl(unsigned long int x)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
#ifndef HAVE_ARPA_INET_H
|
||||
if ( *((char *)&md_endian) == 0x01 )
|
||||
return(x);
|
||||
else
|
||||
|
|
@ -549,7 +558,7 @@ md_ntohl(unsigned long int x)
|
|||
unsigned long int
|
||||
md_htonl(unsigned long int x)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
#ifndef HAVE_ARPA_INET_H
|
||||
if ( *((char *)&md_endian) == 0x01 )
|
||||
return(x);
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue