Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
anttiok
· 13y ago · 0 comments
If you're in the habit of writing "struct sockaddr_in sin;", you'll probably be tempted to write "struct sockaddr_un sun;". Just don't expect that code to compile on Solaris.
Comments
[–]
robmcm1982
13y ago
Is that just hardcoded into the preprocessor itself? Or is part of ANSI C. Wondering if the MS C++ compiler will do this well.
[–]
simias
13y ago
It's not and can be tuned using compiler options as mentioned in TFA. Definitely not standard.