php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9382 inet_aton prototype not used
Submitted: 2001-02-21 15:19 UTC Modified: 2001-02-24 16:16 UTC
From: amra at us dot ibm dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.4pl1 OS: OS400
Private report: No CVE-ID: None
 [2001-02-21 15:19 UTC] amra at us dot ibm dot com
OS/400 does not support inet_aton, and thus an error occurs when trying to compile main/network.c.  

I did notice that ext/standard/flock_compat.c has an implementation of inet_aton. And that main/network.c does include the prototype as follows:

#ifndef PHP_WIN32
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h>
#else
int		 inet_aton(const char *, struct in_addr *);
#endif


All I ask is to change the above to the following:

#ifndef PHP_WIN32
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h>
#endif

#ifndef HAVE_INET_ATON
int		 inet_aton(const char *, struct in_addr *);
#endif

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-24 16:16 UTC] sas@php.net
Thanks, fixed in CVS.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 08:01:28 2024 UTC