pp_sys.c: fix the position of HAS_SETNETENT definement
authorAlexandr Savca <alexandr.savca89@gmail.com>
Thu, 4 Jul 2019 11:55:38 +0000 (14:55 +0300)
committerTony Cook <tony@develop-help.com>
Tue, 9 Jul 2019 06:11:55 +0000 (16:11 +1000)
Else, DIE() will bever be executed.

pp_sys.c

index 304e1b5..0214367 100644 (file)
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -5279,8 +5279,8 @@ PP(pp_shostent)
        DIE(aTHX_ PL_no_sock_func, PL_op_desc[PL_op->op_type]);
 #endif
        break;
-#ifdef HAS_SETNETENT
     case OP_SNETENT:
+#ifdef HAS_SETNETENT
        PerlSock_setnetent(stayopen);
 #else
        DIE(aTHX_ PL_no_sock_func, PL_op_desc[PL_op->op_type]);