AK: Add AK_OS_GNU_HURD :^)

This is defined when building on GNU/Hurd, the GNU operating system with
the Hurd as its kernel (as it was designed originally, before Linux and
GNU/Linux came to be).

Also, define the corresponding part of User-Agent.
This commit is contained in:
Sergey Bugaev 2023-09-03 22:20:58 +03:00 committed by Andrew Kaster
parent e6cf125535
commit 79431b32b2
Notes: sideshowbarker 2024-07-16 20:05:14 +09:00
2 changed files with 6 additions and 0 deletions

View file

@ -98,6 +98,10 @@
# define AK_OS_SOLARIS
#endif
#if defined(__gnu_hurd__)
# define AK_OS_GNU_HURD
#endif
#if defined(_WIN32) || defined(_WIN64)
# define AK_OS_WINDOWS
#endif

View file

@ -44,6 +44,8 @@ namespace Web {
# define OS_STRING "DragonFly"
#elif defined(AK_OS_SOLARIS)
# define OS_STRING "SunOS"
#elif defined(AK_OS_GNU_HURD)
# define OS_STRING "GNU/Hurd"
#else
# error Unknown OS
#endif