git: 63a9c046c5 - main - Developers handbook - Add missing header in sockets chapter

Sergio Carlavilla Delgado <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
The branch main has been updated by carlavilla:

URL: https://cgit.FreeBSD.org/doc/commit/?id=63a9c046c590eb34c3c398889498dbf1bf4965a7

commit 63a9c046c590eb34c3c398889498dbf1bf4965a7
Author:     QWERTIOX <[email protected]>
AuthorDate: 2023-04-08 09:48:12 +0000
Commit:     Sergio Carlavilla Delgado <[email protected]>
CommitDate: 2023-04-08 09:48:12 +0000

    Developers handbook - Add missing header in sockets chapter
    
    Tested with llvm 15
    
    Pull Request:   https://github.com/freebsd/freebsd-doc/pull/150
---
 documentation/content/en/books/developers-handbook/sockets/_index.adoc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/documentation/content/en/books/developers-handbook/sockets/_index.adoc b/documentation/content/en/books/developers-handbook/sockets/_index.adoc
index 640f4524da..3504da6720 100644
--- a/documentation/content/en/books/developers-handbook/sockets/_index.adoc
+++ b/documentation/content/en/books/developers-handbook/sockets/_index.adoc
@@ -559,6 +559,7 @@ We now know enough to write a very simple client, one that will get current time
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
+#include <unistd.h>
 
 int main() {
   register int s;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.