Files
meta-openembedded/meta-networking/recipes-support
Gyorgy Sarvari 57e4475ff2 pgpool2: fix compiling for 32-bit arches
When compiling for 32-bit targets, two issues came to surface:

1. gcc was complaining that math.h is not included in snprintf, and some
   calls were implicitly defined. Added a patch that includes the required
   headers in snprintf.c file:

| snprintf.c: In function 'fmtfloat':
| snprintf.c:1232:13: error: implicit declaration of function 'isnan' [-Wimplicit-function-declaration]
|  1232 |         if (isnan(value))
|       |             ^~~~~
| snprintf.c:50:1: note: include '<math.h>' or provide a declaration of 'isnan'

2. The code passes a time_t argument to a function that expects a long. This works for
   64-bit targets, because on those usually time_t is long.
   However on 32-bit systems time_t is usually long long, which makes compilation fail
   with the following error:

| wd_json_data.c:540:66: error: passing argument 3 of 'json_get_long_value_for_key' from incompatible pointer type [-Wincompatible-pointer-types]
|   540 |         if (json_get_long_value_for_key(root, "StartupTimeSecs", &wdNode->startup_time.tv_sec))
|       |                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

   To account for this, add a new helper method in a patch that returns the required json value
   as a time_t value.

The patches are in pending state, because the mailing list of the project is sufferring from
technical problems - when the site loads, sign up attempts throw internal server errors.

It is planned to submit the patches and to update the status once their infrastructure is back.

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
2025-09-14 16:49:58 +02:00
..
2024-02-09 09:52:12 -08:00
2024-10-01 17:56:44 -07:00
2025-03-24 07:29:13 -07:00
2024-11-23 09:00:14 -08:00
2025-04-10 08:31:03 -07:00
2025-01-07 09:33:14 -08:00
2025-02-20 08:32:46 -08:00
2023-02-16 19:33:29 -08:00
2023-08-03 09:14:20 -07:00
2025-03-21 11:07:33 -07:00
2023-06-14 09:41:35 -07:00
2024-03-26 14:00:53 -07:00
2023-10-17 21:42:56 -07:00
2024-02-09 09:52:12 -08:00
2025-02-17 21:35:47 -08:00
2024-05-23 08:44:42 -07:00
2024-10-10 12:53:51 -07:00
2025-07-06 19:23:22 -04:00
2024-02-09 09:52:12 -08:00
2025-02-01 08:59:27 -08:00
2025-01-24 18:27:39 -08:00
2025-04-07 12:21:18 -07:00
2024-02-09 09:52:12 -08:00
2024-04-09 13:56:26 -07:00
2023-05-28 16:34:59 -07:00
2024-05-19 08:27:58 -07:00
2024-07-15 16:36:15 -07:00
2024-03-25 12:50:39 -07:00
2024-12-19 09:41:25 -08:00
2024-11-21 21:42:35 -08:00
2023-12-29 09:04:16 -08:00
2024-08-09 14:25:20 -07:00
2025-02-23 09:56:37 -08:00