mirror of
https://gitlab.freedesktop.org/xorg/proto/xorgproto.git
synced 2025-12-20 03:30:25 +01:00
Xos.h: include <strings.h> on FreeBSD for index/rindex
Adding index() and rindex() as macros wreaks havoc with several libc++ headers, which liberally use the name 'index' for variables, functions, and more. Get the declarations from <strings.h> instead, where they have been for at least two decades. Signed-off-by: Dimitry Andric <dimitry@andric.com>
This commit is contained in:
parent
c85a6ff7bd
commit
6c3a7302fc
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ in this Software without prior written authorization from The Open Group.
|
|||
*/
|
||||
|
||||
# include <string.h>
|
||||
# if defined(__SCO__) || defined(__UNIXWARE__) || defined(__sun) || defined(__CYGWIN__) || defined(_AIX) || defined(__APPLE__)
|
||||
# if defined(__SCO__) || defined(__UNIXWARE__) || defined(__sun) || defined(__CYGWIN__) || defined(_AIX) || defined(__APPLE__) || defined(__FreeBSD__)
|
||||
# include <strings.h>
|
||||
# else
|
||||
# ifndef index
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue