MSVC compile errors

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема MSVC compile errors
Дата
Msg-id 41CF03DA.6070808@dunslane.net
обсуждение исходный текст
Ответы Re: MSVC compile errors  (Andrew Dunstan <andrew@dunslane.net>)
Re: MSVC compile errors  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
I was egtting a compile error complaining (in effect) abour the lack of
a pid_t type when attempting a compile with MSVC. The attached patch,
which move the definition up in the file win32.h before it is used,
seems to cure the problem.

I am also seeing non-fatal warnings about redefinition of SIG_ERR
SIG_DFL and SIG_IGN which I will investigate.

cheers

andrew


Index: win32.h
===================================================================
RCS file: /home/cvsmirror/pgsql/src/include/port/win32.h,v
retrieving revision 1.41
diff -c -r1.41 win32.h
*** win32.h    1 Dec 2004 23:42:26 -0000    1.41
--- win32.h    26 Dec 2004 18:24:36 -0000
***************
*** 44,49 ****
--- 44,53 ----
  #define DLLIMPORT
  #endif

+ #ifdef WIN32_CLIENT_ONLY
+ typedef int pid_t;
+ #endif
+
  /*
   *    IPC defines
   */
***************
*** 210,219 ****
  #endif
  typedef long key_t;

- #ifdef WIN32_CLIENT_ONLY
- typedef int pid_t;
- #endif
-
  /*
   * Supplement to <sys/stat.h>.
   */
--- 214,219 ----

В списке pgsql-patches по дате отправления:

Предыдущее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: Allow pooled connections to list all prepared queries
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: MSVC compile errors