aboutsummaryrefslogtreecommitdiff
path: root/jim-aio.c
diff options
context:
space:
mode:
Diffstat (limited to 'jim-aio.c')
-rw-r--r--jim-aio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/jim-aio.c b/jim-aio.c
index 6f08993..71e11cc 100644
--- a/jim-aio.c
+++ b/jim-aio.c
@@ -1277,6 +1277,9 @@ static void JimAioTclCompat(Jim_Interp *interp)
int Jim_aioInit(Jim_Interp *interp)
{
+ if (Jim_PackageProvide(interp, "aio", "1.0", JIM_ERRMSG))
+ return JIM_ERR;
+
Jim_CreateCommand(interp, "open", JimAioOpenCommand, NULL, NULL);
#ifndef JIM_ANSIC
Jim_CreateCommand(interp, "socket", JimAioSockCommand, NULL, NULL);