Ignore:
Timestamp:
Jun 17, 2005, 6:32:39 AM (20 years ago)
Author:
bird
Message:

Porting to 64-bit FreeBSD...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libctests/glibc/test-skeleton.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r2043 r2044  
    2121#include <errno.h>
    2222#include <getopt.h>
    23 #include <malloc.h>
     23/*#include <malloc.h> - been replaced by <stdlib.h> ages ago */
    2424#include <search.h>
    2525#include <signal.h>
     
    3232#include <sys/param.h>
    3333#include <time.h>
     34
     35/* bird added for bsd */
     36#ifndef TEMP_FAILURE_RETRY /* special GNU idea */
     37# define TEMP_FAILURE_RETRY(expression) \
     38  (__extension__                                                              \
     39    ({ long int __result;                                                     \
     40       do __result = (long int) (expression);                                 \
     41       while (__result == -1L && errno == EINTR);                             \
     42       __result; }))
     43#endif
     44
     45#ifndef HAVE_QELEM
     46struct qelem
     47  {
     48    struct qelem *q_forw;
     49    struct qelem *q_back;
     50    char q_data[1];
     51  };
     52#endif
    3453
    3554/* The test function is normally called `do_test' and it is called
Note: See TracChangeset for help on using the changeset viewer.