/*
 * RISC OS specific definitions for the libpq frontend build.
 *
 * Sockets come from TCPIPLibs, which keeps the BSD socket error numbers in
 * sys/errno.h rather than the C library's errno.h.
 */

#ifndef PG_CONFIG_OS_H
#define PG_CONFIG_OS_H

#ifndef RISCOS
#define RISCOS
#endif

#include "riscostypes.h"
#include <errno.h>
/* newer C libraries define these with different numbers from TCPIPLibs */
#undef EFBIG
#undef EOVERFLOW
#include <sys/errno.h>

/* strdup, strcasecmp and strncasecmp come from CLibSupport */
#include "csstring.h"

/* the resolver renames are in riscostypes.h */
#define getcwd pg_riscos_getcwd

extern char *pg_riscos_getcwd(char *buf, size_t size);

#endif
