aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/CMakeLists.txt1
-rw-r--r--src/nng.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index c8168d76..12078195 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -123,6 +123,7 @@ endforeach ()
# Static libary
add_library (${PROJECT_NAME}_static STATIC ${NNG_SOURCES})
+target_compile_definitions(${PROJECT_NAME}_static PUBLIC -DNNG_STATIC_LIB)
# Shared library
add_library (${PROJECT_NAME} SHARED ${NNG_SOURCES})
diff --git a/src/nng.h b/src/nng.h
index cba6a596..58c2b774 100644
--- a/src/nng.h
+++ b/src/nng.h
@@ -160,7 +160,7 @@ NNG_DECL int nng_endpoint_dial(nng_endpoint *, int);
// the endpoint is not already dialing or listening.
NNG_DECL int nng_endpoint_listen(nng_endpoint *, int);
-// nng_endpoint_close closes the endpointt, shutting down all underlying
+// nng_endpoint_close closes the endpoint, shutting down all underlying
// connections and releasing all associated resources. It is an error to
// refer to the endpoint after this is called.
NNG_DECL int nng_endpoint_close(nng_endpoint *);