0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +01:00

ircd: Include unistd.h in stdinc stack; remove the syscall() fwddecl.

This commit is contained in:
Jason Volk 2018-09-15 00:14:22 -07:00
parent fe26b5e0c0
commit 9f35483e4e
2 changed files with 1 additions and 3 deletions

View file

@ -34,6 +34,7 @@ extern "C"
{
#include <RB_INC_ASSERT_H
#include <RB_INC_STDARG_H
#include <RB_INC_UNISTD_H
#include <RB_INC_SYS_TIME_H
#include <RB_INC_SYS_UTSNAME_H
}

View file

@ -11,9 +11,6 @@
#pragma once
#define HAVE_IRCD_UTIL_SYSCALL_H
// Declaring this here eliminates the need to include <unistd.h> for it
extern "C" long syscall(long, ...) noexcept;
namespace ircd::util
{
template<class function, class... args> long syscall(function&& f, args&&... a);