Skip to content

Commit a81b9d6

Browse files
committed
Fix random build breakage from log_disconnections patch.
1 parent 59f9a0b commit a81b9d6

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

src/backend/tcop/postgres.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.392 2004/02/17 04:09:26 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.393 2004/02/21 06:29:58 tgl Exp $
1212
*
1313
* NOTES
1414
* this is the "main" module of the postgres backend and
@@ -3240,8 +3240,9 @@ log_disconnections(int code, Datum arg)
32403240
snprintf(session_time,sizeof(session_time),"negative!");
32413241
else
32423242
/* for stricter accuracy here we could round - this is close enough */
3243-
snprintf(session_time, sizeof(session_time),"%d:%02d:%02d.%02ld",
3244-
hours, minutes, seconds, end.tv_usec/10000);
3243+
snprintf(session_time, sizeof(session_time),
3244+
"%d:%02d:%02d.%02d",
3245+
hours, minutes, seconds, (int) (end.tv_usec/10000));
32453246

32463247
ereport(
32473248
LOG,

src/include/libpq/libpq-be.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,22 @@
1111
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
1212
* Portions Copyright (c) 1994, Regents of the University of California
1313
*
14-
* $PostgreSQL: pgsql/src/include/libpq/libpq-be.h,v 1.40 2004/02/17 03:54:57 momjian Exp $
14+
* $PostgreSQL: pgsql/src/include/libpq/libpq-be.h,v 1.41 2004/02/21 06:29:58 tgl Exp $
1515
*
1616
*-------------------------------------------------------------------------
1717
*/
1818
#ifndef LIBPQ_BE_H
1919
#define LIBPQ_BE_H
2020

21-
#include "libpq/hba.h"
22-
#include "libpq/pqcomm.h"
23-
21+
#include <sys/time.h>
2422
#ifdef USE_SSL
2523
#include <openssl/ssl.h>
2624
#include <openssl/err.h>
2725
#endif
2826

27+
#include "libpq/hba.h"
28+
#include "libpq/pqcomm.h"
29+
2930

3031
typedef enum CAC_state
3132
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy