diff --git a/src/operators.c b/src/operators.c
index 169c0f8d28533862d97104f0cdaecc9e8cd75cdc..7f172bc7442c8d67625490ddd5df8c34b8e47dbb 100644
--- a/src/operators.c
+++ b/src/operators.c
@@ -165,7 +165,7 @@ void index_no_free(struct svalue *to,struct svalue *what,struct svalue *ind)
   }
 }
 
-void o_index(void)
+PMOD_EXPORT void o_index(void)
 {
   struct svalue s;
   index_no_free(&s,sp-2,sp-1);
diff --git a/src/operators.h b/src/operators.h
index 6bc24d10d5f195ac7c0ff391279d73a97e6ab542..b530c2410e6e60e24fb629b389e66d6e72e1decf 100644
--- a/src/operators.h
+++ b/src/operators.h
@@ -34,7 +34,7 @@ struct string_assignment_storage
 
 /* Prototypes begin here */
 void index_no_free(struct svalue *to,struct svalue *what,struct svalue *ind);
-void o_index(void);
+PMOD_EXPORT void o_index(void);
 PMOD_EXPORT void o_cast_to_int(void);
 PMOD_EXPORT void o_cast_to_string(void);
 PMOD_EXPORT void o_cast(struct pike_type *type, INT32 run_time_type);