kernel/OS.h: Include sys/types.h instead of pthread.h.

This avoids polluting the namespace significantly. Also adjust
all files which depended on this behavior to include pthread.h
directly.
This commit is contained in:
Augustin Cavalier
2019-04-12 15:26:25 -04:00
parent 53830ab75a
commit f1fafe317f
9 changed files with 13 additions and 3 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2004-2009, Haiku Inc. All Rights Reserved.
* Copyright 2004-2019, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _OS_H
@@ -7,7 +7,7 @@
/** Kernel specific structures and functions */
#include <pthread.h>
#include <sys/types.h>
#include <stdarg.h>
#include <SupportDefs.h>
@@ -7,6 +7,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <AppFileInfo.h>
#include <Application.h>
+2
View File
@@ -6,6 +6,8 @@
#include "QueryList.h"
#include <pthread.h>
#include <Autolock.h>
#include <Debug.h>
#include <NodeMonitor.h>
+1
View File
@@ -21,6 +21,7 @@
#include <new>
#include <string.h>
#include <pthread.h>
using std::nothrow;
+2
View File
@@ -30,6 +30,8 @@
#include <new>
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
using namespace std;
@@ -11,6 +11,7 @@
#include <string>
#include <stdio.h>
#include <pthread.h>
#include <Directory.h>
#include <Entry.h>
+1
View File
@@ -10,6 +10,7 @@
#include <fcntl.h>
#include <stdarg.h>
#include <stdlib.h>
#include <pthread.h>
#include <OS.h>
+1
View File
@@ -9,6 +9,7 @@
#include <errno.h>
#include <fcntl.h>
#include <string.h>
#include <pthread.h>
#include <OS.h>
@@ -12,6 +12,7 @@
#include <fcntl.h>
#include <stdarg.h>
#include <stdlib.h>
#include <pthread.h>
#include <OS.h>