Portál AbcLinuxu, 5. června 2025 08:40
#ifdef HZ Hertz = (unsigned long)HZ; /* <asm/param.h> */ #else - Hertz = (sizeof(long)==sizeof(int)) ? 100UL : 1024UL; + /* If 32-bit or big-endian (not Alpha or ia64), assume HZ is 100. */ + Hertz = (sizeof(long)==sizeof(int) || htons(999)==999) ? 100UL : 1024UL; #endif #if 0 /* This ends up causing more harm than good.. Vadi to necemu? Nefunguje kvuli tomu neco?*/ fprintf(stderr, "Unknown HZ value! (%ld) Assume %ld.\n", h, Hertz);
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.