diff options
author | Dmitri Pal <dpal@redhat.com> | 2012-12-23 13:03:00 -0500 |
---|---|---|
committer | Ondrej Kos <okos@redhat.com> | 2013-01-24 08:34:37 +0100 |
commit | 57faa64667411a3d8eeeeff62b1e659a94ed29cf (patch) | |
tree | 229c850672e485e62fce866cf1b14fb65a5a4c06 /basicobjects | |
parent | 360710d1a6c0c24d00a915a630884281b0b9e665 (diff) | |
download | ding-libs2-57faa64667411a3d8eeeeff62b1e659a94ed29cf.tar.gz ding-libs2-57faa64667411a3d8eeeeff62b1e659a94ed29cf.tar.xz ding-libs2-57faa64667411a3d8eeeeff62b1e659a94ed29cf.zip |
Fixing headers
Move GNU_SOUCE definition to configure.ac
Change all headers to use config.h.
Move config.h to the top.
Remove errno.h if it is not needed.
Diffstat (limited to 'basicobjects')
-rw-r--r-- | basicobjects/simplebuffer.c | 4 | ||||
-rw-r--r-- | basicobjects/simplebuffer_ut.c | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/basicobjects/simplebuffer.c b/basicobjects/simplebuffer.c index b47d6b6..1e7b3fb 100644 --- a/basicobjects/simplebuffer.c +++ b/basicobjects/simplebuffer.c @@ -17,8 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ - -#define _GNU_SOURCE +#include "config.h" #include <errno.h> /* for errors */ #include <stdlib.h> /* for free() */ #include <unistd.h> /* for write() */ @@ -26,7 +25,6 @@ #include "simplebuffer.h" #include "trace.h" -#include "config.h" /* End line string */ #define ENDLNSTR "\n" diff --git a/basicobjects/simplebuffer_ut.c b/basicobjects/simplebuffer_ut.c index 61272da..ba9d172 100644 --- a/basicobjects/simplebuffer_ut.c +++ b/basicobjects/simplebuffer_ut.c @@ -17,10 +17,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include "config.h" #include <stdlib.h> #include <stdio.h> #include <string.h> -#include <errno.h> #include <unistd.h> #include <fcntl.h> #include <sys/stat.h> |