File: sysconf_memory_sizing.patch

package info (click to toggle)
vsearch 2.22.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 22,516 kB
  • sloc: cpp: 29,218; ansic: 478; makefile: 232; sh: 48
file content (20 lines) | stat: -rw-r--r-- 636 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: kFreeBSD portability patch
 By using the POSIX sysconf(3) together with the nonstandard extension
 _SC_PHYS_PAGES, the system's installed memory can be queried portably on
 Linux and kFreeBSD.
Author: Jeff Epler <jepler@unpythonic.net>
Bug-Debian: https://bugs.debian.org/776814
Forwarded: http://lists.alioth.debian.org/pipermail/debian-med-packaging/2015-February/031414.html
Last-Update: Thu, 19 Feb 2015 16:07:52 +0100 (Andreas Tille <tille@debian.org>)

--- a/src/arch.cc
+++ b/src/arch.cc
@@ -60,6 +60,8 @@
 
 #include "vsearch.h"
 
+#include <unistd.h>
+
 const int memalignment = 16;
 
 uint64_t arch_get_memused()