https://issues.apache.org/bugzilla/show_bug.cgi?id=55077
Bug ID: 55077
Summary: httpd.h: allow use of strtoul(2)
Product: Apache httpd-2
Version: 2.5-HEAD
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Core
Assignee: [email protected]
Reporter: [email protected]
Created attachment 30406
--> https://issues.apache.org/bugzilla/attachment.cgi?id=30406&action=edit
Allow use of strtoul
On behalf of a user spotting this on Debian, I'm forwarding you bug
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=711534. httpd.h defines in
httpd.h
/** strtoul does not exist on sunos4. */
#ifdef strtoul
#undef strtoul
#endif
#define strtoul strtoul_is_not_a_portable_function_use_strtol_instead
I'm sure that's true for sunos4, but I don't see any harm to let third parties
use strtoul if they wanted to. The statement is exaggerating as well. strtoul
is defined in POSIX-2001, BSD's stdlib.h, and many more - with the exception of
sunos4 for sure, but that's obsolete for a decade at least.
That said, I have no strong opinion on it. Feel free to keep it, if you feel
like, but I doubt this outweighs breaking any semi-recent C standard.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]