shiyilei / protobuf-c

Automatically exported from code.google.com/p/protobuf-c
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

AF_LOCAL does not exists on Solaris, AIX and HPUX #86

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. ./configure --disable-protoc
2. make

What is the expected output? What do you see instead?
Compile successful.

What version of the product are you using? On what operating system?
Solaris 8 Sparc, AIX 5.1 and HPUX 11.11

Please provide any additional information below.
AF_LOCAL does not exists, simply changing it to AF_UNIX compiles fine in all 
the platforms.

Original issue reported on code.google.com by ykph...@gmail.com on 17 Jul 2012 at 9:40

GoogleCodeExporter commented 8 years ago
According to 
http://www.gnu.org/software/libc/manual/html_node/Address-Formats.html

AF_UNIX
This is a synonym for AF_LOCAL. Although AF_LOCAL is mandated by POSIX.1g, 
AF_UNIX is portable to more systems. AF_UNIX was the traditional name stemming 
from BSD, so even most POSIX systems support it. It is also the name of choice 
in the Unix98 specification. (The same is true for PF_UNIX vs. PF_LOCAL). 

Original comment by sodab...@gmail.com on 1 Aug 2012 at 9:18