# gcc fix.c -std=gnu99 -shared -fPIC -o fix.sofix.c: In function 'SSL_write':fix.c:20:40: error: 'intptr_t' undeclared (first use in this function); did you mean '__intptr_t'? g_ssl_write = (SSL_write_t *) (intptr_t) dlsym(RTLD_NEXT, "SSL_write"); ^~~~~~~~ __intptr_tfix.c:20:40: note: each undeclared identifier is reported only once for each function it appears infix.c:20:50: error: expected ';' before 'dlsym' g_ssl_write = (SSL_write_t *) (intptr_t) dlsym(RTLD_NEXT, "SSL_write");
#include <stdint.h>