#include <time.h>
#ifndef WIN32
-#define GENERAL_ERRNO (errno)
-#define GENERAL_ERRNO_SET(e) (errno = e)
#include <pwd.h>
#include <sys/types.h>
#include <unistd.h>
+#include <errno.h>
+#define GENERAL_ERRNO (errno)
+#define GENERAL_ERRNO_SET(e) (errno = e)
#else
#define GENERAL_ERRNO (GetLastError())
#define GENERAL_ERRNO_SET(e) SetLastError(e)
static void
generate_homefile(const char *prefix, char *filename)
{
- char dir[_MAX_PATH];
+ char dir[PATH_MAX];
#ifdef WIN32
const char *ptr;
*
* Comments: See "notice.txt" for copyright and license information.
*
- * $Id: psqlodbc.h,v 1.117 2007/04/03 14:49:02 hinoue Exp $
+ * $Id: psqlodbc.h,v 1.118 2007/04/11 16:36:47 h-saito Exp $
*
*/
/* Info limits */
#define MAX_INFO_STRING 128
#define MAX_KEYPARTS 20
-#define MAX_KEYLEN 512 /* max key of the form
+#define MAX_KEYLEN 512 /* max key of the form
+
* "date+outlet+invoice" */
+/* POSIX defines a PATH_MAX.( wondows is _MAX_PATH ..) */
+#ifndef PATH_MAX
+#define PATH_MAX 1024
+#endif
+
#define MAX_ROW_SIZE 0 /* Unlimited rowsize with the
* Tuple Toaster */
#define MAX_STATEMENT_LEN 0 /* Unlimited statement size with