OpenBSD uses iodbc.

OpenBSD uses iodbc. I don't know if my code is good or not but with the patch you can see the problem and fix it :)