summaryrefslogtreecommitdiff
path: root/erts/emulator/nifs/common/socket_tarray.c
diff options
context:
space:
mode:
Diffstat (limited to 'erts/emulator/nifs/common/socket_tarray.c')
-rw-r--r--erts/emulator/nifs/common/socket_tarray.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/erts/emulator/nifs/common/socket_tarray.c b/erts/emulator/nifs/common/socket_tarray.c
index def22c4919..c35089f878 100644
--- a/erts/emulator/nifs/common/socket_tarray.c
+++ b/erts/emulator/nifs/common/socket_tarray.c
@@ -1,7 +1,7 @@
/*
* %CopyrightBegin%
*
- * Copyright Ericsson AB 2018-2019. All Rights Reserved.
+ * Copyright Ericsson AB 2018-2022. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -24,9 +24,11 @@
*
*/
-/* #ifdef HAVE_CONFIG_H */
-/* #include "config.h" */
-/* #endif */
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#ifdef ESOCK_ENABLE
#include <stdio.h>
@@ -141,3 +143,5 @@ void esock_tarray_ensure_fits(SocketTArrayInt* taP, Uint32 needs)
taP->array = (ERL_NIF_TERM*) mem;
}
}
+
+#endif