mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-29 04:13:43 +03:00
Merge branch 'fix-solaris-11'
This commit is contained in:
commit
750ececf08
7
NEWS
7
NEWS
|
@ -14,6 +14,13 @@ Other changes:
|
||||||
without using 2to3.
|
without using 2to3.
|
||||||
|
|
||||||
|
|
||||||
|
What's new in psycopg 2.7.5
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
- Fixed building on Solaris 11 and derivatives such as SmartOS and illumos
|
||||||
|
(:ticket:`#677`)
|
||||||
|
|
||||||
|
|
||||||
What's new in psycopg 2.7.4
|
What's new in psycopg 2.7.4
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/* solaris_support.c - emulate functions missing on Solaris
|
/* solaris_support.c - emulate functions missing on Solaris
|
||||||
*
|
*
|
||||||
* Copyright (C) 2017 My Karlsson <mk@acc.umu.se>
|
* Copyright (C) 2017 My Karlsson <mk@acc.umu.se>
|
||||||
|
* Copyright (c) 2018, Joyent, Inc.
|
||||||
*
|
*
|
||||||
* This file is part of psycopg.
|
* This file is part of psycopg.
|
||||||
*
|
*
|
||||||
|
@ -28,7 +29,8 @@
|
||||||
#include "psycopg/solaris_support.h"
|
#include "psycopg/solaris_support.h"
|
||||||
|
|
||||||
#if defined(__sun) && defined(__SVR4)
|
#if defined(__sun) && defined(__SVR4)
|
||||||
/* timeradd is missing on Solaris */
|
/* timeradd is missing on Solaris 10 */
|
||||||
|
#ifndef timeradd
|
||||||
void
|
void
|
||||||
timeradd(struct timeval *a, struct timeval *b, struct timeval *c)
|
timeradd(struct timeval *a, struct timeval *b, struct timeval *c)
|
||||||
{
|
{
|
||||||
|
@ -51,4 +53,5 @@ timersub(struct timeval *a, struct timeval *b, struct timeval *c)
|
||||||
c->tv_sec -= 1;
|
c->tv_sec -= 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif /* timeradd */
|
||||||
#endif /* defined(__sun) && defined(__SVR4) */
|
#endif /* defined(__sun) && defined(__SVR4) */
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/* solaris_support.h - definitions for solaris_support.c
|
/* solaris_support.h - definitions for solaris_support.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2017 My Karlsson <mk@acc.umu.se>
|
* Copyright (C) 2017 My Karlsson <mk@acc.umu.se>
|
||||||
|
* Copyright (c) 2018, Joyent, Inc.
|
||||||
*
|
*
|
||||||
* This file is part of psycopg.
|
* This file is part of psycopg.
|
||||||
*
|
*
|
||||||
|
@ -30,8 +31,10 @@
|
||||||
#if defined(__sun) && defined(__SVR4)
|
#if defined(__sun) && defined(__SVR4)
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
|
||||||
|
#ifndef timeradd
|
||||||
extern HIDDEN void timeradd(struct timeval *a, struct timeval *b, struct timeval *c);
|
extern HIDDEN void timeradd(struct timeval *a, struct timeval *b, struct timeval *c);
|
||||||
extern HIDDEN void timersub(struct timeval *a, struct timeval *b, struct timeval *c);
|
extern HIDDEN void timersub(struct timeval *a, struct timeval *b, struct timeval *c);
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* !defined(PSYCOPG_SOLARIS_SUPPORT_H) */
|
#endif /* !defined(PSYCOPG_SOLARIS_SUPPORT_H) */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user