This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v4] Make bindresvport() function to multithread-safe
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Peng Haitao <penght at cn dot fujitsu dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Fri, 28 Sep 2012 17:47:58 +0200
- Subject: Re: [PATCH v4] Make bindresvport() function to multithread-safe
- References: <1348823725-18793-1-git-send-email-penght@cn.fujitsu.com>
Peng Haitao <penght@cn.fujitsu.com> writes:
> +#ifdef __linux__
Don't use ifdef, instead put an overriding file under
sysdeps/unix/sysv/linux.
> +#define get_port() \
Make that an inline function instead of a macro.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."