Rename header guards on compat/queue.h to avoid it conflicting if the system

header is included first. This matters on some platforms (macOS) where queue.h
is old. From Saagar Jha in GitHub issue 4041.
This commit is contained in:
Nicholas Marriott 2024-08-04 09:54:31 +01:00
parent 109d2bda1a
commit 775789fbd5
1 changed files with 3 additions and 3 deletions

View File

@ -32,8 +32,8 @@
* @(#)queue.h 8.5 (Berkeley) 8/20/94
*/
#ifndef _SYS_QUEUE_H_
#define _SYS_QUEUE_H_
#ifndef _COMPAT_QUEUE_H_
#define _COMPAT_QUEUE_H_
/*
* This file defines five types of data structures: singly-linked lists,
@ -530,4 +530,4 @@ struct { \
} \
} while (0)
#endif /* !_SYS_QUEUE_H_ */
#endif /* !_COMPAT_QUEUE_H_ */