Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
e97c8170
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e97c8170
编写于
9月 08, 2004
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use _timezone global on Cygwin instead of timezone.
上级
cef30c65
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
21 addition
and
17 deletion
+21
-17
config/c-library.m4
config/c-library.m4
+6
-2
configure
configure
+4
-0
src/include/port.h
src/include/port.h
+9
-1
src/interfaces/ecpg/pgtypeslib/dt.h
src/interfaces/ecpg/pgtypeslib/dt.h
+0
-8
src/timezone/pgtz.c
src/timezone/pgtz.c
+2
-6
未找到文件。
config/c-library.m4
浏览文件 @
e97c8170
# Macros that test various C library quirks
# $PostgreSQL: pgsql/config/c-library.m4,v 1.2
6 2004/06/07 22:39:44
momjian Exp $
# $PostgreSQL: pgsql/config/c-library.m4,v 1.2
7 2004/09/08 19:43:00
momjian Exp $
# PGAC_VAR_INT_TIMEZONE
...
...
@@ -10,7 +10,11 @@ AC_DEFUN([PGAC_VAR_INT_TIMEZONE],
[AC_CACHE_CHECK(for int timezone, pgac_cv_var_int_timezone,
[AC_TRY_LINK([#include <time.h>
int res;],
[res = timezone / 60;],
[#ifndef __CYGWIN__
res = timezone / 60;
#else
res = _timezone / 60;
#endif],
[pgac_cv_var_int_timezone=yes],
[pgac_cv_var_int_timezone=no])])
if test x"$pgac_cv_var_int_timezone" = xyes ; then
...
...
configure
浏览文件 @
e97c8170
...
...
@@ -10725,7 +10725,11 @@ int res;
int
main ()
{
#ifndef __CYGWIN__
res = timezone / 60;
#else
res = _timezone / 60;
#endif
;
return 0;
}
...
...
src/include/port.h
浏览文件 @
e97c8170
...
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/port.h,v 1.5
7 2004/08/29 21:08:48 tgl
Exp $
* $PostgreSQL: pgsql/src/include/port.h,v 1.5
8 2004/09/08 19:43:07 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -180,6 +180,14 @@ extern int win32_open(const char *, int,...);
#define pclose(a) _pclose(a)
#endif
/* Global variable holding time zone information. */
#if !defined(__CYGWIN__)
#define TIMEZONE_GLOBAL timezone
#else
#define TIMEZONE_GLOBAL _timezone
#define tzname _tzname
/* should be in time.h? */
#endif
extern
int
copydir
(
char
*
fromdir
,
char
*
todir
);
/* Missing rand functions */
...
...
src/interfaces/ecpg/pgtypeslib/dt.h
浏览文件 @
e97c8170
...
...
@@ -216,14 +216,6 @@ do { \
} while(0)
#endif
/* Global variable holding time zone information. */
#if !defined(__CYGWIN__) && !defined(WIN32)
#define TIMEZONE_GLOBAL timezone
#else
#define TIMEZONE_GLOBAL _timezone
#define tzname _tzname
/* should be in time.h? */
#endif
/*
* Date/time validation
* Include check for leap year.
...
...
src/timezone/pgtz.c
浏览文件 @
e97c8170
...
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.2
7 2004/09/02 01:15:06
momjian Exp $
* $PostgreSQL: pgsql/src/timezone/pgtz.c,v 1.2
8 2004/09/08 19:43:12
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -96,11 +96,7 @@ get_timezone_offset(struct tm * tm)
#if defined(HAVE_STRUCT_TM_TM_ZONE)
return
tm
->
tm_gmtoff
;
#elif defined(HAVE_INT_TIMEZONE)
#ifdef HAVE_UNDERSCORE_TIMEZONE
return
-
_timezone
;
#else
return
-
timezone
;
#endif
return
-
TIMEZONE_GLOBAL
;
#else
#error No way to determine TZ? Can this happen?
#endif
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录