Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
paho.mqtt.c
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eclipse
paho.mqtt.c
Commits
f7f9aeb4
Commit
f7f9aeb4
authored
Nov 13, 2013
by
Ian Craggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add _GNU_SOURCE to find pthread_mutexattr_init and display gcc version during build
parent
0a385f48
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
build.xml
build.xml
+5
-0
MQTTAsync.c
src/MQTTAsync.c
+1
-1
MQTTClient.c
src/MQTTClient.c
+2
-0
No files found.
build.xml
View file @
f7f9aeb4
...
@@ -54,6 +54,11 @@
...
@@ -54,6 +54,11 @@
<property
name=
"ldflags.so"
value=
"-fvisibility=hidden -shared"
/>
<property
name=
"ldflags.so"
value=
"-fvisibility=hidden -shared"
/>
<mkdir
dir=
"${output.folder}"
/>
<mkdir
dir=
"${output.folder}"
/>
<!-- display gcc version -->
<exec
executable=
"gcc"
failonerror=
"true"
>
<arg
line=
"-v"
/>
</exec>
<!-- non-SSL, synchronous library -->
<!-- non-SSL, synchronous library -->
<property
name=
"output.filename"
value=
"${output.folder}/lib${libname}.so"
/>
<property
name=
"output.filename"
value=
"${output.folder}/lib${libname}.so"
/>
<exec
executable=
"gcc"
failonerror=
"true"
>
<exec
executable=
"gcc"
failonerror=
"true"
>
...
...
src/MQTTAsync.c
View file @
f7f9aeb4
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
*
*
*/
*/
#define _GNU_SOURCE
#define _GNU_SOURCE
/* for pthread_mutexattr_settype */
#include <stdlib.h>
#include <stdlib.h>
#if !defined(WIN32)
#if !defined(WIN32)
#include <sys/time.h>
#include <sys/time.h>
...
...
src/MQTTClient.c
View file @
f7f9aeb4
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
* Ian Craggs - multiple server connection support
* Ian Craggs - multiple server connection support
* Ian Craggs - fix for bug 413429 - connectionLost not called
* Ian Craggs - fix for bug 413429 - connectionLost not called
* Ian Craggs - fix for bug 421103 - trying to write to same socket, in publish/retries
* Ian Craggs - fix for bug 421103 - trying to write to same socket, in publish/retries
* Ian Craggs - fix for bug 419233 - mutexes not reporting errors
*******************************************************************************/
*******************************************************************************/
/**
/**
...
@@ -26,6 +27,7 @@
...
@@ -26,6 +27,7 @@
*
*
*/
*/
#define _GNU_SOURCE
/* for pthread_mutexattr_settype */
#include <stdlib.h>
#include <stdlib.h>
#if !defined(WIN32)
#if !defined(WIN32)
#include <sys/time.h>
#include <sys/time.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment