Portál AbcLinuxu, 16. prosince 2025 14:02
#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.
*/
fprintf(stderr, "Unknown HZ value! (%ld) Assume %ld.\n", h, Hertz);
.
Vadi to necemu? Nefunguje kvuli tomu neco?
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.