Ok, thanks for suggestions.
Hope, the optimal solution will be found.
Anton
--
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive:
http://lists.debian.org/CALF6qJnB73EY-DijF73OvXGueS13kchUN=pqp6knee
2011/7/17 Anton Gladky :
> [1]
> http://anonscm.debian.org/gitweb/?p=debian-science/packages/freecad.git;a=blob;f=src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp;h=08d1b66958c089e84b2e0e468b7a34f2bae58106;hb=HEAD#l68
The code you quoted just fills the structure, below it's using it to
query free
It is for FreeCAD [1]:
struct sysinfo si;
int err = sysinfo( &si );
if ( err )
return -1;
static int limit = -1;
if ( limit < 0 ) {
int status = system("SMDS_MemoryLimit"); // it returns lower limit
of free RAM
if (status >= 0 ) {
limit = WEXITSTATUS(status);
}
2011/7/17 Petr Salinger :
> The GNU/kFreeBSD does not have "struct sysinfo" at all.
Anton, there are usually suitable replacements. What did you need sysinfo for?
--
Robert Millan
--
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contac
I have a very simple code:
=
#include
int main() {
struct sysinfo si;
}
=
On KFreebsd it fails and causes FTBFS:
s.cpp:5:18: error: aggregate ?main()::sysinfo si? has incomplete type
and cannot be defined
On other systems it compiles without errors.
What can be a problem in?
Hi, all
I have a very simple code:
=
#include
int main() {
struct sysinfo si;
}
=
On KFreebsd it fails and causes FTBFS:
s.cpp:5:18: error: aggregate ‘main()::sysinfo si’ has incomplete type
and cannot be defined
On other systems it compiles without errors.
What can be a prob
6 matches
Mail list logo