diff --git a/include/xp_mcom.h b/include/xp_mcom.h index 1343bc36397..cfe752f3c55 100644 --- a/include/xp_mcom.h +++ b/include/xp_mcom.h @@ -99,6 +99,10 @@ XP_END_PROTOS #ifndef __QNX__ #include +#else +XP_BEGIN_PROTOS +extern long random(void); /* QNX doesn't provide a prototype, so do this until they fix it. */ +XP_END_PROTOS #endif #define XP_STRDUP(s) strdup((s))