Browse Source

Minimize #includes, particularly to avoid thread_private.h

ok tedu@
OPENBSD_6_2 openntpd-6.2p2
guenther 6 years ago
parent
commit
2f8ee43fe4
2 changed files with 3 additions and 7 deletions
  1. +2
    -3
      src/lib/libc/stdlib/abort.c
  2. +1
    -4
      src/lib/libc/stdlib/exit.c

+ 2
- 3
src/lib/libc/stdlib/abort.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: abort.c,v 1.20 2015/10/25 04:13:59 guenther Exp $ */
/* $OpenBSD: abort.c,v 1.21 2017/08/12 22:59:52 guenther Exp $ */
/*
* Copyright (c) 1985 Regents of the University of California.
* All rights reserved.
@ -30,9 +30,8 @@
#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "thread_private.h"
#include "atexit.h"
void


+ 1
- 4
src/lib/libc/stdlib/exit.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: exit.c,v 1.13 2015/09/13 08:31:47 guenther Exp $ */
/* $OpenBSD: exit.c,v 1.14 2017/08/12 22:59:52 guenther Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
@ -28,12 +28,9 @@
* SUCH DAMAGE.
*/
#include <sys/types.h>
#include <sys/mman.h>
#include <stdlib.h>
#include <unistd.h>
#include "atexit.h"
#include "thread_private.h"
/*
* This variable is zero until a process has created a thread.


Loading…
Cancel
Save