prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  [package] asio/1.13.0: broken on Andriod
  Commit: https://github.com/conan-io/conan-center-index/commit/804be2ad15b2139960fe10efcd6667d1f2dd2e98 breaks Android because there is no `-lpthread` 
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `recipes/asio/all/conanfile.py`
  Content:
  ```
  1 import os
  2 from conans import ConanFile, tools
  3 
  4 
  5 class Asio(ConanFile):
  6     name = "asio"
  7     url = "https://github.com/conan-io/conan-center-index"
  8     homepage = "http://think-async.com/Asio"
  9     description = "Asio is a cross-platform C++ library for network and low-level I/O"
  10     topics = ("conan", "asio", "network", "io", "low-level")
  11     license = "BSL-1.0"
  12 
  13     no_copy_source = True
  14     _source_subfolder = "source_subfolder"
  15 
  16     def source(self):
  17         tools.get(**self.conan_data["sources"][self.version])
  18         archive_name = "asio-" + self.version.replace(".", "-")
  19         extracted_name = "asio-" + archive_name
  20         os.rename(extracted_name, self._source_subfolder)
  21 
  22     def package(self):
  23         root_dir = os.path.join(self._source_subfolder, self.name)
  24         include_dir = os.path.join(root_dir, "include")
  25         self.copy(pattern="LICENSE_1_0.txt", dst="licenses", src=root_dir)
  26         self.copy(pattern="*.hpp", dst="include", src=include_dir)
  27         self.copy(pattern="*.ipp", dst="include", src=include_dir)
  28 
  29     def package_info(self):
  30         self.cpp_info.defines.append('ASIO_STANDALONE')
  31         if tools.os_info.is_linux:
  32             self.cpp_info.libs.append('pthread')
  33 
  34     def package_id(self):
  35         self.info.header_only()
  36
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/recipes/asio/all/conanfile.py b/recipes/asio/all/conanfile.py
  --- a/recipes/asio/all/conanfile.py
  +++ b/recipes/asio/all/conanfile.py
  @@ -8,6 +8,7 @@
       homepage = "http://think-async.com/Asio"
       description = "Asio is a cross-platform C++ library for network and low-level I/O"
       topics = ("conan", "asio", "network", "io", "low-level")
  +    settings = "os"
       license = "BSL-1.0"
   
       no_copy_source = True
  @@ -28,7 +29,7 @@
   
       def package_info(self):
           self.cpp_info.defines.append('ASIO_STANDALONE')
  -        if tools.os_info.is_linux:
  +        if str(self.settings.os) in ["Linux", "Android"]:
               self.cpp_info.libs.append('pthread')
   
       def package_id(self):
  
verification_info: {"golden_diff": "diff --git a/recipes/asio/all/conanfile.py b/recipes/asio/all/conanfile.py\n--- a/recipes/asio/all/conanfile.py\n+++ b/recipes/asio/all/conanfile.py\n@@ -8,6 +8,7 @@\n     homepage = \"http://think-async.com/Asio\"\n     description = \"Asio is a cross-platform C++ library for network and low-level I/O\"\n     topics = (\"conan\", \"asio\", \"network\", \"io\", \"low-level\")\n+    settings = \"os\"\n     license = \"BSL-1.0\"\n \n     no_copy_source = True\n@@ -28,7 +29,7 @@\n \n     def package_info(self):\n         self.cpp_info.defines.append('ASIO_STANDALONE')\n-        if tools.os_info.is_linux:\n+        if str(self.settings.os) in [\"Linux\", \"Android\"]:\n             self.cpp_info.libs.append('pthread')\n \n     def package_id(self):\n", "issue": "[package] asio/1.13.0: broken on Andriod\nCommit: https://github.com/conan-io/conan-center-index/commit/804be2ad15b2139960fe10efcd6667d1f2dd2e98 breaks Android because there is no `-lpthread` \n", "before_files": [{"content": "import os\nfrom conans import ConanFile, tools\n\n\nclass Asio(ConanFile):\n    name = \"asio\"\n    url = \"https://github.com/conan-io/conan-center-index\"\n    homepage = \"http://think-async.com/Asio\"\n    description = \"Asio is a cross-platform C++ library for network and low-level I/O\"\n    topics = (\"conan\", \"asio\", \"network\", \"io\", \"low-level\")\n    license = \"BSL-1.0\"\n\n    no_copy_source = True\n    _source_subfolder = \"source_subfolder\"\n\n    def source(self):\n        tools.get(**self.conan_data[\"sources\"][self.version])\n        archive_name = \"asio-\" + self.version.replace(\".\", \"-\")\n        extracted_name = \"asio-\" + archive_name\n        os.rename(extracted_name, self._source_subfolder)\n\n    def package(self):\n        root_dir = os.path.join(self._source_subfolder, self.name)\n        include_dir = os.path.join(root_dir, \"include\")\n        self.copy(pattern=\"LICENSE_1_0.txt\", dst=\"licenses\", src=root_dir)\n        self.copy(pattern=\"*.hpp\", dst=\"include\", src=include_dir)\n        self.copy(pattern=\"*.ipp\", dst=\"include\", src=include_dir)\n\n    def package_info(self):\n        self.cpp_info.defines.append('ASIO_STANDALONE')\n        if tools.os_info.is_linux:\n            self.cpp_info.libs.append('pthread')\n\n    def package_id(self):\n        self.info.header_only()\n", "path": "recipes/asio/all/conanfile.py"}], "after_files": [{"content": "import os\nfrom conans import ConanFile, tools\n\n\nclass Asio(ConanFile):\n    name = \"asio\"\n    url = \"https://github.com/conan-io/conan-center-index\"\n    homepage = \"http://think-async.com/Asio\"\n    description = \"Asio is a cross-platform C++ library for network and low-level I/O\"\n    topics = (\"conan\", \"asio\", \"network\", \"io\", \"low-level\")\n    settings = \"os\"\n    license = \"BSL-1.0\"\n\n    no_copy_source = True\n    _source_subfolder = \"source_subfolder\"\n\n    def source(self):\n        tools.get(**self.conan_data[\"sources\"][self.version])\n        archive_name = \"asio-\" + self.version.replace(\".\", \"-\")\n        extracted_name = \"asio-\" + archive_name\n        os.rename(extracted_name, self._source_subfolder)\n\n    def package(self):\n        root_dir = os.path.join(self._source_subfolder, self.name)\n        include_dir = os.path.join(root_dir, \"include\")\n        self.copy(pattern=\"LICENSE_1_0.txt\", dst=\"licenses\", src=root_dir)\n        self.copy(pattern=\"*.hpp\", dst=\"include\", src=include_dir)\n        self.copy(pattern=\"*.ipp\", dst=\"include\", src=include_dir)\n\n    def package_info(self):\n        self.cpp_info.defines.append('ASIO_STANDALONE')\n        if str(self.settings.os) in [\"Linux\", \"Android\"]:\n            self.cpp_info.libs.append('pthread')\n\n    def package_id(self):\n        self.info.header_only()\n", "path": "recipes/asio/all/conanfile.py"}]}