Skip to content

Commit 7b1b816

Browse files
committed
Remove unnecessary macros for a C++ file.
1 parent 476f3b4 commit 7b1b816

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

judge/runguard.cc

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@
3232
/* Some system/site specific config: VALID_USERS, CHROOT_PREFIX */
3333
#include "runguard-config.h"
3434

35-
/* For chroot(), which is not POSIX. */
36-
#define _DEFAULT_SOURCE
37-
/* For unshare() used by cgroups. */
38-
#define _GNU_SOURCE
39-
4035
#include <sys/types.h>
4136
#include <sys/wait.h>
4237
#include <sys/param.h>
@@ -100,10 +95,6 @@ const struct timespec cg_delete_delay = { 0, 10000000L }; /* 0.01 seconds */
10095

10196
extern int errno;
10297

103-
#ifndef _GNU_SOURCE
104-
extern char **environ;
105-
#endif
106-
10798
const int exit_failure = -1;
10899

109100
char *progname;

0 commit comments

Comments
 (0)