summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2011-03-19 20:28:55 +0000
committerNicholas Clark <nick@ccl4.org>2011-03-19 21:18:19 +0000
commit93659fa2a996f0659d1657045950727a313d8207 (patch)
tree0657c0d9ef19a5f77702af1dbe98310de7a1a371 /ext
parent810ec44244e03a3b5acc4dc164d4ab59b7c81629 (diff)
downloadperl-93659fa2a996f0659d1657045950727a313d8207.tar.gz
Add PERL_NO_GET_CONTEXT to Sys::Hostname
For threaded platforms, this reduces the object code size, and should slightly reduce CPU usage.
Diffstat (limited to 'ext')
-rw-r--r--ext/Sys-Hostname/Hostname.xs2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/Sys-Hostname/Hostname.xs b/ext/Sys-Hostname/Hostname.xs
index 3ec72f7845..6e974dd41f 100644
--- a/ext/Sys-Hostname/Hostname.xs
+++ b/ext/Sys-Hostname/Hostname.xs
@@ -1,3 +1,5 @@
+#define PERL_NO_GET_CONTEXT
+
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"