You might try running the file utility on the program, it can sometimes tell you what OS/Version a binary was compiled for. Here is an example from FreeBSD:
Code:
Terry@dixie$ file /bin/sh 7:59
/bin/sh: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 7.0 (700109), dynamically linked (uses shared libs), FreeBSD-style, stripped
Terry@dixie$ file /usr/local/lib/linux-flock/flock-bin 8:01
/usr/local/lib/linux-flock/flock-bin: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared libs), stripped
Terry@dixie$ 8:01
__________________
My
Journal
Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.