[tracker: 9/13] Removed warning: implicit declaration of function 'getpagesize'
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker: 9/13] Removed warning: implicit declaration of function 'getpagesize'
- Date: Sun, 23 May 2021 01:05:16 +0000 (UTC)
commit 1aecf2c1d04cdffc837a28b25405f2e93f246948
Author: nitinosiris <nitinwartkar58 gmail com>
Date: Thu May 20 17:37:01 2021 +0530
Removed warning: implicit declaration of function 'getpagesize'
src/libtracker-sparql/tracker-endpoint-dbus.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-sparql/tracker-endpoint-dbus.c b/src/libtracker-sparql/tracker-endpoint-dbus.c
index f204ed37b..8c35a89cc 100644
--- a/src/libtracker-sparql/tracker-endpoint-dbus.c
+++ b/src/libtracker-sparql/tracker-endpoint-dbus.c
@@ -169,7 +169,7 @@ query_request_new (TrackerEndpointDBus *endpoint,
stream = g_unix_output_stream_new (fd, TRUE);
buffered_stream = g_buffered_output_stream_new_sized (stream,
- getpagesize ());
+ sysconf(_SC_PAGE_SIZE));
request->data_stream = g_data_output_stream_new (buffered_stream);
g_data_output_stream_set_byte_order (request->data_stream,
@@ -212,7 +212,7 @@ update_request_new (TrackerEndpointDBus *endpoint,
stream = g_unix_input_stream_new (input, TRUE);
request->input_stream = g_data_input_stream_new (stream);
g_buffered_input_stream_set_buffer_size (G_BUFFERED_INPUT_STREAM (request->input_stream),
- getpagesize ());
+ sysconf(_SC_PAGE_SIZE));
g_data_input_stream_set_byte_order (request->input_stream,
G_DATA_STREAM_BYTE_ORDER_HOST_ENDIAN);
g_object_unref (stream);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]