src/test/examples/testlibpq2.c where the HAVE_SYS_SELECT_H is defined.

From: jian he <jian(dot)universality(at)gmail(dot)com>
To: pgsql-general list <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: src/test/examples/testlibpq2.c where the HAVE_SYS_SELECT_H is defined.
Date: 2023-03-17 06:47:33
Message-ID: CACJufxG90JSQUxUzfsfNGeDFat6ma2CenqnVzV0SrpURye0gdA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
playing around with $[0] testlibpq2.c example. I wondered where
HAVE_SYS_SELECT_H is defined?

I searched on the internet, founded that people also asked the same
question in $[1].

In my machine, I do have <sys/select.h>.
system version: Ubuntu 22.04.1 LTS
gcc version: gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
gcc compile command: gcc pg_testlibpq2.c -I/home/jian/postgres/pg16/include
\
-L/home/jian/postgres/pg16/lib -lpq

[0]https://www.postgresql.org/docs/current/libpq-example.html
[1]
https://stackoverflow.com/questions/37876850/in-compilation-time-how-to-find-the-macro-is-defined-in-which-header-file

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andreas Joseph Krogh 2023-03-17 07:56:51 Delete values from JSON
Previous Message Dolan, Sean 2023-03-16 20:38:07 Many logical replication synchronization worker threads kicking off for ONE table