Include sys_getdefaultencoding in #ifdef Py_USING_UNICODE. Fixes #479571.
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 711cd49..1ca69b4 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -164,6 +164,8 @@
 If it is another kind of object, it will be printed and the system\n\
 exit status will be one (i.e., failure).";
 
+#ifdef Py_USING_UNICODE
+
 static PyObject *
 sys_getdefaultencoding(PyObject *self)
 {
@@ -176,8 +178,6 @@
 Return the current default string encoding used by the Unicode \n\
 implementation.";
 
-#ifdef Py_USING_UNICODE
-
 static PyObject *
 sys_setdefaultencoding(PyObject *self, PyObject *args)
 {