… | |
… | |
572 | { |
572 | { |
573 | #if __GLIBC__ |
573 | #if __GLIBC__ |
574 | return realloc (ptr, size); |
574 | return realloc (ptr, size); |
575 | #else |
575 | #else |
576 | /* some systems, notably openbsd and darwin, fail to properly |
576 | /* some systems, notably openbsd and darwin, fail to properly |
577 | * implement realloc (x, 0) (as required by both ansi c-98 and |
577 | * implement realloc (x, 0) (as required by both ansi c-89 and |
578 | * the single unix specification, so work around them here. |
578 | * the single unix specification, so work around them here. |
579 | */ |
579 | */ |
580 | |
580 | |
581 | if (size) |
581 | if (size) |
582 | return realloc (ptr, size); |
582 | return realloc (ptr, size); |