Check-in [4ce6697da8]
Overview
Comment:Fixed bugs related to not using C11 atomics
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:4ce6697da85123a2a784497a43ab2a77fa915512
User & Date: rkeene on 2016-03-03 04:21:31
Other Links: manifest | tags
Context
2016-05-20
15:52
Added a simple way to pass additional CFLAGS/LDFLAGS/LIBS check-in: 6d0a708452 user: rkeene tags: trunk
2016-03-03
04:21
Fixed bugs related to not using C11 atomics check-in: 4ce6697da8 user: rkeene tags: trunk
2016-02-23
05:24
Added a troubleshooting section to the README about C11 atomics and broken versions of gcc check-in: afddda9b5d user: rkeene tags: trunk
Changes

Modified Makefile from [5a0201dfad] to [debc382dde].

     1      1   CC = gcc
     2         -CFLAGS = -std=gnu11 -Wall -Werror -Wno-error=cpp -W -pthread -O3 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
            2  +CFLAGS = -std=gnu11 -Wall -Werror -W -pthread -O3 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
     3      3   LDFLAGS = -pthread
     4      4   LIBS = -lpthread
     5      5   MIMETYPES = /etc/httpd/mime.types
     6      6   
     7      7   PREFIX = /usr/local
     8      8   prefix = $(PREFIX)
     9      9   bindir = $(prefix)/bin

Modified filed.c from [ce75275d14] to [07cd352593].

    53     53   #endif
    54     54   
    55     55   /*
    56     56    * If the C compiler does not support C11 atomics, disable TIMEOUT support
    57     57    * since it relies upon it
    58     58    */
    59     59   #ifndef FILED_FEATURE_C11_ATOMICS
    60         -#  warning "Automatically defining FILED_DONT_TIMEOUT since your C compiler lacks C11 atomics"
    61     60   #  define FILED_DONT_TIMEOUT 1
    62     61   #endif
    63     62   
    64     63   /*
    65     64    * These headers are only required for TIMEOUT support
    66     65    */
    67     66   #ifndef FILED_DONT_TIMEOUT
................................................................................
   613    612   
   614    613   	return(0);
   615    614   }
   616    615   #endif
   617    616   
   618    617   #ifdef FILED_DONT_TIMEOUT
   619    618   #define filed_sockettimeout_thread_init() 0
          619  +#define filed_sockettimeout_init() 0
   620    620   #define filed_sockettimeout_accept(x) /**/
   621    621   #define filed_sockettimeout_processing_start(x) /**/
   622    622   #define filed_sockettimeout_processing_end(x) /**/
   623    623   #define filed_sockettimeout_close(x) /**/
   624    624   #else
   625    625   _Atomic time_t filed_sockettimeout_time;
   626    626   struct {