#ifndef INCLUDED_COMPAT_H
#define INCLUDED_COMPAT_H

#if defined(sun) && defined(__svr4__)
#define SOLARIS

#define bcopy(s1,s2,n) memmove(s2, s1, n)
#define bzero(b,l) memset((void *) b, 0, l)
#define index(s,c) strchr(s,c)
#define srandom(s) srand(s)
#define random() rand()

#endif /* defined(sun) && defined(__svr4__) */

#endif /* INCLUDED_COMPAT_H */
